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 390DF10DB7 for ; Thu, 5 Sep 2013 15:15:43 +0000 (UTC) Received: (qmail 6124 invoked by uid 500); 5 Sep 2013 15:15:43 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 6065 invoked by uid 500); 5 Sep 2013 15:15:41 -0000 Mailing-List: contact dev-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.incubator.apache.org Delivered-To: mailing list dev@curator.incubator.apache.org Received: (qmail 6021 invoked by uid 99); 5 Sep 2013 15:15:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 15:15:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [77.238.189.213] (HELO nm3-vm0.bullet.mail.ird.yahoo.com) (77.238.189.213) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 05 Sep 2013 15:15:32 +0000 Received: from [77.238.189.52] by nm3.bullet.mail.ird.yahoo.com with NNFMP; 05 Sep 2013 15:14:50 -0000 Received: from [212.82.108.244] by tm5.bullet.mail.ird.yahoo.com with NNFMP; 05 Sep 2013 15:14:50 -0000 Received: from [127.0.0.1] by omp1009.mail.ird.yahoo.com with NNFMP; 05 Sep 2013 15:14:50 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 216013.62659.bm@omp1009.mail.ird.yahoo.com Received: (qmail 11825 invoked by uid 60001); 5 Sep 2013 15:14:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1378394090; bh=MVibUZN/AkZFtsMejoDQqO6eTtSFn7F3Henq7eiaf7M=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=UHGNVg2J3boiB5iy3o6x9o4AWcgl2hUefAH3mi78GQ9pY0E6NbH6x9B4QGmqK3SfEKBum4kgsIpIX3jFRiqjU5GdA4qAlNAz/XFToiIjzBvOEMSnDNTc4yxAaT+j7z8VVfeiwJS+35JdLzqWMA05QBz2GJp79lstovAlTAytoGE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=mZqlQEuHgClsSgbBMF7BD/Lc6YKvi6WobeDFptzrvA1EmYGThCEBicHgMHM3c1tTk4Wl9UBs3G4BzjTGOW6sQD/tvkXG1bWMsLpGZl9KS01gQ8PPEQ7dP0hAssaMd/crKwcipYpCW6hyWW0ddyInBsNDBgkWwDoDoUO6Ldne+Ds=; X-YMail-OSG: CQ91FKcVM1lQOpqexAlLiEaTCW6f4FD0NQbjQfAzsnXZZ3e _CUogf6NOCew83lFi3Lys7dZivr70W0igyqMCnRWdiqZOrywL5wda8aUtkeS DUZV6WaG7z.8sDk7P858tmJa4A8mZAaWyl2s3ltjvCiJurSdWLcBjoCJQ8Gh 7k2e8W.BfyZb2iqJRVN_az5g8g2o59xZZnQPoGPbZsT4gTiFrxDcZIZkcEXT Ey_VhFzgblj4TKbyquIM_hBy9KFFQVKpHkrW722ly8wXoavQhqhlEQMFxPGV isQ4_np5mllaKOr9nlMzGo401_.aM5pNKSnWsWXLCt4oLuz9ZmtWEXWRn7px K8Y8ITrp_P62n1DIEJmyEtp8pMGKUcviv2gJRYIaj59iAX1gYTYNqaRe11Aq Q1O7WsCj4nmwykbreo0Wx..gu4goh2CQP7dBwpZoFig0GnGL.B9xLwalKaoz saONmcqgcZ93UQyUw3w.Foz7u9NtJXOlT0NimJl7wvtuHBGvzoqJuBRG5biq lmEvjqwDutL1d76mW.KPWxey9zex1uSrtYCg21x8g83mK2UvRc3t.RfWbs.R VQvFfv6r4T.8Jhap4Ul4bHYFtA.5yVdNffmMDvfBkLKJ.G.FGpuSicLwfrQ- - Received: from [195.235.15.243] by web172501.mail.ir2.yahoo.com via HTTP; Thu, 05 Sep 2013 16:14:49 BST X-Rocket-MIMEInfo: 002.001,CgpIaSB0aGVyZSwKCkkgYW0gdXNpbmcgdGhlIFBlcnNpc3RlbnRFcGhlbWVyYWxOb2RlLCBhbmQgSSBoYXZlIG5vdGljZWQgdGhhdCBpdCBpcyBuZWVkZWQgdG8gbWFrZSBpdCB3b3JrIGFzc3VyZSB0aGF0IHRoZSBQZXJzaXN0ZW50RXBoZW1lcmFsTm9kZSBpbnN0YW5jZSBzdGFydGVkIHdoZW4gdGhlIEN1cmF0b3JGcmFtZXdvcmsgaXMgY29ubmVjdGVkLiBPdGhlcndpc2UgaXQgbG9va3MgdGhhdCB0aGUgcmVjaXBlZSBkb2VzIG5vdCB3b3JrCgpGb3IgaW5zdGFuY2UgdGhpcyBzZXF1ZW5jZSBpcyBub3Qgd28BMAEBAQE- X-Mailer: YahooMailWebService/0.8.156.576 References: Message-ID: <1378394089.3861.YahooMailNeo@web172501.mail.ir2.yahoo.com> Date: Thu, 5 Sep 2013 16:14:49 +0100 (BST) From: =?iso-8859-1?Q?Evaristo_Jos=E9_Camarero?= Reply-To: =?iso-8859-1?Q?Evaristo_Jos=E9_Camarero?= Subject: PersistentEphemeralNode possible bug To: "dev@curator.incubator.apache.org" , "user@curator.incubator.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-497721299-1729682409-1378394089=:3861" X-Virus-Checked: Checked by ClamAV on apache.org ---497721299-1729682409-1378394089=:3861 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A=0AHi there,=0A=0AI am using the PersistentEphemeralNode, and I have not= iced that it is needed to make it work assure that the PersistentEphemeralN= ode instance started when the CuratorFramework is connected. Otherwise it l= ooks that the recipee does not work=0A=0AFor instance this sequence is not = working:=0A=0A// ZK servers are not started here=0AExponentialBackoffRetry = retryPolicy =3D new ExponentialBackoffRetry(1000, 1, 2000);=0ACuratorFramew= ork zkClient =3D CuratorFrameworkFactory.newClient("127.0.0.1:30101",=A0=0A= =0A4500,=0A4500,=0AretryPolicy);=0AzkClient.start();=0AThread.sleep(2000);= =0A=0APersistentEphemeralNode pen =3D new PersistentEphemeralNode(zkClient,= Mode.EPHEMERAL, "/abc/pen", "hello".getBytes());=0AThread.sleep(2000);=0A= =0A// Start ZK servers here=0AThread.sleep(2000);=0A// "/abc/pen" ephemeral= node is not created=0A=0AIs this a bug? Is it assumed that a connection li= stener should be used to start the PersistentEphemeralNode when the zkclien= t is connected?=0A=0A=0AThanks in advance,=0A=0AEvaristo ---497721299-1729682409-1378394089=:3861--