[jira] [Created] (FLINK-6342) Start ZooKeeperLeaderElectionService under lock to avoid race condition

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-6342) Start ZooKeeperLeaderElectionService under lock to avoid race condition

Shang Yuanchun (Jira)
Till Rohrmann created FLINK-6342:
------------------------------------

             Summary: Start ZooKeeperLeaderElectionService under lock to avoid race condition
                 Key: FLINK-6342
                 URL: https://issues.apache.org/jira/browse/FLINK-6342
             Project: Flink
          Issue Type: Bug
          Components: Distributed Coordination
    Affects Versions: 1.3.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann
             Fix For: 1.3.0


The {{ZooKeeperLeaderElectionService}} should start its components under the {{lock}} in order to avoid race conditions with the {{LeaderLatchListener's}} callback {{isLeader}}. If this is not done, then a leader notification might go unnoticed from the election service because the {{LeaderLatch}} has been started but the internal state of the election service has not been set to running yet.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)