curator-dev mailing list archives

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


Steve Loughran commented on CURATOR-101:

java.lang.IllegalStateException: instance must be started before calling this method
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.delete(
	at org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.unregisterService(
	at org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.close(
	at org.apache.hadoop.service.AbstractService.stop(
	at org.apache.hadoop.service.ServiceOperations.stop(
	at org.apache.hadoop.service.ServiceOperations.stopQuietly(
	at org.apache.hadoop.service.CompositeService.stop(
	at org.apache.hadoop.service.CompositeService.serviceStop(
	at org.apache.hadoop.service.AbstractService.stop(
	at org.apache.hadoop.util.ShutdownHookManager$

> ServiceDiscoveryImpl.close() fails if the service was never started
> -------------------------------------------------------------------
>                 Key: CURATOR-101
>                 URL:
>             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

View raw message