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 CE77418FF0 for ; Mon, 5 Oct 2015 21:11:48 +0000 (UTC) Received: (qmail 65748 invoked by uid 500); 5 Oct 2015 21:11:26 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 65699 invoked by uid 500); 5 Oct 2015 21:11:26 -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 65658 invoked by uid 99); 5 Oct 2015 21:11:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2015 21:11:26 +0000 Date: Mon, 5 Oct 2015 21:11:26 +0000 (UTC) From: "Alexey Serba (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 Alexey Serba created CURATOR-270: ------------------------------------ Summary: 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 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)