提交 31aedede 编写于 作者: T Till Rohrmann

[FLINK-2604] [runtime] Adds synchronization to stop method of ZooKeeperLeaderElectionService

上级 6a58aade
...@@ -114,8 +114,10 @@ public class ZooKeeperLeaderElectionService implements LeaderElectionService, Le ...@@ -114,8 +114,10 @@ public class ZooKeeperLeaderElectionService implements LeaderElectionService, Le
leaderLatch.close(); leaderLatch.close();
client.close(); client.close();
confirmedLeaderSessionID = null; synchronized (lock) {
issuedLeaderSessionID = null; confirmedLeaderSessionID = null;
issuedLeaderSessionID = null;
}
} }
@Override @Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册