You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2013/11/10 01:10:17 UTC
[jira] [Comment Edited] (CURATOR-53) PersistentEphemeralNode does
not work when ZK server are not available when the node is started
[ https://issues.apache.org/jira/browse/CURATOR-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818305#comment-13818305 ]
Jordan Zimmerman edited comment on CURATOR-53 at 11/10/13 12:08 AM:
--------------------------------------------------------------------
[~evaristo-jose.camarero@ericsson.com] has found that 2.3.0 still exhibits. Test case attached (test.java).
was (Author: randgalt):
Evaristo has found that 2.3.0 still exhibits. Test case attached (test.java).
> PersistentEphemeralNode does not work when ZK server are not available when the node is started
> -----------------------------------------------------------------------------------------------
>
> Key: CURATOR-53
> URL: https://issues.apache.org/jira/browse/CURATOR-53
> Project: Apache Curator
> Issue Type: Bug
> Components: Recipes
> Affects Versions: 2.2.0-incubating, 2.3.0
> Environment: Windows, Java 1.7, Zookeeper 3.4.5, Curator 2.1.0
> Reporter: Evaristo
> Assignee: Jordan Zimmerman
> Fix For: 2.3.1
>
> Attachments: FailurePenStart.java, FailurePenStart2.java, test.java
>
>
> This sequence is not working:
> // ZK servers are not started here
> ExponentialBackoffRetry retryPolicy = new ExponentialBackoffRetry(1000, 1, 2000);
> CuratorFramework zkClient = CuratorFrameworkFactory.newClient("127.0.0.1:30101",
> 4500,
> 4500,
> retryPolicy);
> zkClient.start();
> Thread.sleep(2000);
> PersistentEphemeralNode pen = new PersistentEphemeralNode(zkClient, Mode.EPHEMERAL, "/abc/pen", "hello".getBytes());
> Thread.sleep(2000);
> // Start ZK servers here
> Thread.sleep(2000);
> // "/abc/pen" ephemeral node is not created
> It is expected that once the CuratorFrameowrk is connected the ephemeral node is created
> I attach a program that shows the failure
--
This message was sent by Atlassian JIRA
(v6.1#6144)