Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E6DA7200BC8 for ; Tue, 8 Nov 2016 20:34:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E4140160B0A; Tue, 8 Nov 2016 19:34:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3CEA7160AD0 for ; Tue, 8 Nov 2016 20:34:15 +0100 (CET) Received: (qmail 63401 invoked by uid 500); 8 Nov 2016 19:33:01 -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 63365 invoked by uid 99); 8 Nov 2016 19:33:01 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 19:33:01 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6BF3F2C0276 for ; Tue, 8 Nov 2016 19:32:58 +0000 (UTC) Date: Tue, 8 Nov 2016 19:32:58 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CURATOR-280) LeaderLatch doesn't work when using a zookeeper chroot MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 19:34:16 -0000 [ https://issues.apache.org/jira/browse/CURATOR-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15648559#comment-15648559 ] Jordan Zimmerman commented on CURATOR-280: ------------------------------------------ You have call `zooKeeper.create("/")` - that's a problem. When there is no chroot calling create on the root throws "NodeExists for /". Curator would have to know that it's in a chroot state and act differently. That's not really practical. > LeaderLatch doesn't work when using a zookeeper chroot > ------------------------------------------------------ > > Key: CURATOR-280 > URL: https://issues.apache.org/jira/browse/CURATOR-280 > Project: Apache Curator > Issue Type: Bug > Components: Framework > Affects Versions: 2.9.0, 2.9.1 > Reporter: Vincent Bernat > > Hey! > When using a ZK connection-string with a chroot (for example {{localhost:2181/chroot}}), the leader election by LeaderLatch doesn't work. This may be similar to CURATOR-270. If I query {{.getParticipants}}, I get: > {code} > Actual: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /test4 > org.apache.zookeeper.KeeperException.create(KeeperException.java:111) > org.apache.zookeeper.KeeperException.create(KeeperException.java:51) > org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590) > org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214) > org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:203) > org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107) > org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:199) > org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191) > org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:38) > org.apache.curator.framework.recipes.locks.LockInternals.getSortedChildren(LockInternals.java:150) > org.apache.curator.framework.recipes.locks.LockInternals.getParticipantNodes(LockInternals.java:132) > org.apache.curator.framework.recipes.leader.LeaderLatch.getParticipants(LeaderLatch.java:430) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)