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 DEC8518120 for ; Tue, 6 Oct 2015 13:23:39 +0000 (UTC) Received: (qmail 37067 invoked by uid 500); 6 Oct 2015 13:23:27 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 37022 invoked by uid 500); 6 Oct 2015 13:23:27 -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 37006 invoked by uid 99); 6 Oct 2015 13:23:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 13:23:27 +0000 Date: Tue, 6 Oct 2015 13:23:27 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CURATOR-270) createContainers does not work correctly with usingNamespace 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-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jordan Zimmerman reassigned CURATOR-270: ---------------------------------------- Assignee: Jordan Zimmerman > createContainers does not work correctly with usingNamespace > ------------------------------------------------------------ > > Key: CURATOR-270 > URL: https://issues.apache.org/jira/browse/CURATOR-270 > Project: Apache Curator > Issue Type: Bug > Components: Framework > Affects Versions: 2.9.0 > Reporter: Alexey Serba > Assignee: Jordan Zimmerman > Fix For: 2.9.1 > > > I just recently upgraded my project to 2.9.0 and noticed that {{PathChildrenCache}} recipe started failing with > {noformat} > Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /parent > at org.apache.zookeeper.KeeperException.create(KeeperException.java:111) ~[zookeeper-3.4.6.jar:3.4.6-1569965] > at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[zookeeper-3.4.6.jar:3.4.6-1569965] > at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590) ~[zookeeper-3.4.6.jar:3.4.6-1569965] > at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214) ~[curator-framework-2.9.0.jar:?] > at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:203) ~[curator-framework-2.9.0.jar:?] > at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107) ~[curator-client-2.9.0.jar:?] > at org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:200) ~[curator-framework-2.9.0.jar:?] > at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191) ~[curator-framework-2.9.0.jar:?] > at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:38) ~[curator-framework-2.9.0.jar:?] > at org.apache.curator.framework.recipes.cache.PathChildrenCache.rebuild(PathChildrenCache.java:326) ~[curator-recipes-2.9.0.jar:?] > at org.apache.curator.framework.recipes.cache.PathChildrenCache.start(PathChildrenCache.java:299) ~[curator-recipes-2.9.0.jar:?] > {noformat} > It turns out that {{PathChildrenCache}} recently started using new implementation {{createContainers}} for creating parent directories/znodes and this method has a bug in {{NamespaceFacade.createContainers}} implementation, because it does not account for namespace name. > I'll create a PR with a test and fix shortly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)