Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14287

Decouple leader address from LeaderContender

    XMLWordPrintableJSON

    Details

    • Release Note:
      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

            Activity

              People

              • Assignee:
                trohrmann Till Rohrmann
                Reporter:
                trohrmann Till Rohrmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m