[ 
https://issues.apache.org/jira/browse/CURATOR-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13965356#comment-13965356
 ] 

Steve Loughran commented on CURATOR-101:
----------------------------------------

Looking at it more, to create this stack trace you have to call 
{{CuratorFramework.stop()}} ahead of {{ServiceDiscovery.stop()}} -its triggered 
by the ordering of shutdown -this may mean that it's the correct behaviour, but 
callers do need to plan for it

> ServiceDiscoveryImpl.close() fails if the service was never started
> -------------------------------------------------------------------
>
>                 Key: CURATOR-101
>                 URL: https://issues.apache.org/jira/browse/CURATOR-101
>             Project: Apache Curator
>          Issue Type: Bug
>    Affects Versions: 2.4.1
>            Reporter: Steve Loughran
>            Assignee: Jordan Zimmerman
>            Priority: Minor
>
> the {{close()}} operator of ServiceDiscoveryImpl raises an 
> {{IllegalStateException}} if you attempt to call it -this is a runtime 
> exception and somewhat drastic on an operation that should be robust against 
> odd states.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to