[
https://issues.apache.org/jira/browse/CURATOR-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818460#comment-13818460
]
Jordan Zimmerman commented on CURATOR-72:
-----------------------------------------
This is not a bug. The PersistentEphemeralNode is started before there is a
successful connection. Further, the RetryPolicy is RetryOneTime(1) and
timing.session() is 2. So, the PersistentEphemeralNode node creation is failing
before the connection succeeds causing a LOST message to (correctly) get sent.
Change the retry policy to something reasonable or make the session timeout
longer and CONNECT is received first.
> Background operations don't wait for connection timeout
> -------------------------------------------------------
>
> Key: CURATOR-72
> URL: https://issues.apache.org/jira/browse/CURATOR-72
> Project: Apache Curator
> Issue Type: Bug
> Components: Framework
> Affects Versions: 2.3.0
> Reporter: Evaristo Camarero
> Assignee: Jordan Zimmerman
> Fix For: 2.3.1
>
> Attachments: TestListenerConnectedAtStart.java, test.java
>
>
> Background operations don't wait for the configured connection timeout before
> failing. Attached test shows the problem.
--
This message was sent by Atlassian JIRA
(v6.1#6144)