You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Greg Moulliet (JIRA)" <ji...@apache.org> on 2014/04/18 22:15:16 UTC
[jira] [Created] (CURATOR-104) LeaderSelector issue after losing
ZooKeeper leader
Greg Moulliet created CURATOR-104:
-------------------------------------
Summary: LeaderSelector issue after losing ZooKeeper leader
Key: CURATOR-104
URL: https://issues.apache.org/jira/browse/CURATOR-104
Project: Apache Curator
Issue Type: Bug
Affects Versions: 2.4.1
Reporter: Greg Moulliet
Assignee: Jordan Zimmerman
LeaderSelectors are not re-attempting leadership after a ZooKeeper leader is stopped and a client with leadership is stopped.
I have a client process running on 2 servers. Each process is using LeaderSelectors for the same set of leaderPaths.
The scenario:
1 - Both clients running, with one client being the leader of each path (2 children are under each leaderPath)
2 - Stop the ZooKeeper leader
3 - All clients temporarily lose leadership (0 children are under each leaderPath)
4 - Leadership is regained by the same clients that had leadership in step 1 (1 child is under each leaderPath)
5 - Stop a client with leadership
6 - No other clients pick up leadership of the leaderPaths from step 5 (0 children are under each leaderPath)
Sometimes, a client will pick up one of the leaderPaths, but not more than one.
I’m using Curator 2.4.1 and ZooKeeper 3.4.5.
I originally saw the issue with Curator 2.3.0, and was hoping it was the same as https://issues.apache.org/jira/browse/CURATOR-73.
--
This message was sent by Atlassian JIRA
(v6.2#6252)