You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2019/09/29 17:14:00 UTC

[jira] [Created] (FLINK-14287) Decouple leader address from LeaderContender

Till Rohrmann created FLINK-14287:
-------------------------------------

             Summary: Decouple leader address from LeaderContender
                 Key: FLINK-14287
                 URL: https://issues.apache.org/jira/browse/FLINK-14287
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Coordination
    Affects Versions: 1.10.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann
             Fix For: 1.10.0


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)