Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Done
-
1.10.0
-
The `LeaderElectionService#confirmLeadership(UUID, String)` now takes a second argument which is the address under which the leader will be reachable. All custom `LeaderElectionService` implementations will need to be updated accordingly.
Description
At the moment, the LeaderContender need to know the address of the leader before it has gained leadership. This is problematic if one wants to decouple the leader election from the actual leader component which will potentially only be created after the leadership has been gained. If this is the case, then it is not always possible to know the address of the actual leader component before gaining the leadership.
In order to solve this problem, I propose to change the interface of LeaderElectionService#confirmLeadership(UUID) to LeaderElectionService#confirmLeadership(UUID, String) where the second parameter is the leader address under which the leader component is reachable.
Attachments
Issue Links
- links to