Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31BE7932A for ; Wed, 12 Nov 2014 13:11:34 +0000 (UTC) Received: (qmail 81638 invoked by uid 500); 12 Nov 2014 13:11:34 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 81592 invoked by uid 500); 12 Nov 2014 13:11:34 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 81580 invoked by uid 99); 12 Nov 2014 13:11:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2014 13:11:34 +0000 Date: Wed, 12 Nov 2014 13:11:33 +0000 (UTC) From: "Mike Drob (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CURATOR-165) LeaderLatch.checkLeadership(LeaderLatch.java:478) will throw a exception, then no leader will be elected. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CURATOR-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208014#comment-14208014 ] Mike Drob commented on CURATOR-165: ----------------------------------- I think this might be the same issue as described in CURATOR-136. [~zhaogang] - is there any chance you can upgrade to 2.7.0 and see if that fixes your problem? > LeaderLatch.checkLeadership(LeaderLatch.java:478) will throw a exception, then no leader will be elected. > --------------------------------------------------------------------------------------------------------- > > Key: CURATOR-165 > URL: https://issues.apache.org/jira/browse/CURATOR-165 > Project: Apache Curator > Issue Type: Bug > Components: Recipes > Affects Versions: 2.5.0 > Reporter: zhaogang > Priority: Critical > > 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) -- This message was sent by Atlassian JIRA (v6.3.4#6332)