Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Duplicate
-
2.5.0
-
None
-
None
Description
We use curator for leader election within our 2 clients, sometimes none of the 2 clients was a leader.
We checked the log and found this caused by a exception which was being throwed in method LeaderLatch.checkLeadership(), after throwing this exception the curator won't do the leader election. Here is error log:
ERROR org.apache.curator.framework.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up
INFO | jvm 1 | 2014/11/12 00:36:52 | java.lang.IllegalArgumentException: Path must start with / character
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:53)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.utils.ZKPaths.getNodeFromPath(ZKPaths.java:56)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.framework.recipes.leader.LeaderLatch.checkLeadership(LeaderLatch.java:478)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.framework.recipes.leader.LeaderLatch.access$500(LeaderLatch.java:60)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.framework.recipes.leader.LeaderLatch$6.processResult(LeaderLatch.java:536)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:730)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:516)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.curator.framework.imps.GetChildrenBuilderImpl$2.processResult(GetChildrenBuilderImpl.java:166)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:590)
INFO | jvm 1 | 2014/11/12 00:36:52 | at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
Attachments
Issue Links
- duplicates
-
CURATOR-168 Background protected mode incorrectly sets Event name to just ZNode name. Should be full path.
- Closed