You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Gopi Kori (JIRA)" <ji...@apache.org> on 2014/12/28 15:09:13 UTC
[jira] [Commented] (CURATOR-175) If zookeeper is down when
discovery is started, it fails to register when the zookeeper comes up for
the first time.
[ https://issues.apache.org/jira/browse/CURATOR-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259644#comment-14259644 ]
Gopi Kori commented on CURATOR-175:
-----------------------------------
I have submitted a pull request with the fix https://github.com/apache/curator/pull/58
Thanks,
Gopi
> If zookeeper is down when discovery is started, it fails to register when the zookeeper comes up for the first time.
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CURATOR-175
> URL: https://issues.apache.org/jira/browse/CURATOR-175
> Project: Apache Curator
> Issue Type: Bug
> Components: Framework
> Affects Versions: 2.7.0
> Reporter: Gopi Kori
> Priority: Minor
> Labels: curator-x-discovery
>
> If zookeeper is down when discovery is started, it fails to register when the zookeeper comes up for the first time.
> However, if the zookeeper is restarted again, discovery will connect and register the service instance correctly.
> This happens because org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.stateChanged() considers only ConnectionState.RECONNECTED state and not ConnectionState.CONNECTED. This causes the first connection to be ignored, while subsequent connection recoveries work fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)