Details
-
Technical Debt
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently, LeaderContender implementations (e.g. see ResourceManagerServiceImplTest#grantLeadership_withExistingLeader_waitTerminationOfExistingLeader) allow the handling of leader events of the same type happening after each other which shouldn't be the case.
Two subsequent leadership grants indicate that the leading instance which received the leadership grant again missed the leadership revocation event causing an invalid state of the overall deployment (i.e. split brain scenario). We should fail fatally in these scenarios rather than handling them.