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 2017/04/20 14:45:04 UTC
[jira] [Created] (FLINK-6342) Start ZooKeeperLeaderElectionService
under lock to avoid race condition
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)