curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CURATOR-101) ServiceDiscoveryImpl.close() fails if the service was never started
Date Thu, 10 Apr 2014 13:43:15 GMT

    [ 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)

Mime
View raw message