You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2019/05/21 18:39:00 UTC
[jira] [Commented] (CURATOR-520) NoSuchMethod Exception on
curator.close() in 3.4 compatibility mode
[ https://issues.apache.org/jira/browse/CURATOR-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16845124#comment-16845124 ]
Jordan Zimmerman commented on CURATOR-520:
------------------------------------------
I suspect you are calling {{waitForShutdownTimeoutMs}} in {{CuratorFrameworkFactory}}. This is not supported for ZooKeeper 3.4.x. As we document here - http://curator.apache.org/zk-compatibility.html - regarding 3.4.x compatibility, {{It is up to your application code to "do the right thing" and not use these features.}}
> NoSuchMethod Exception on curator.close() in 3.4 compatibility mode
> -------------------------------------------------------------------
>
> Key: CURATOR-520
> URL: https://issues.apache.org/jira/browse/CURATOR-520
> Project: Apache Curator
> Issue Type: Bug
> Components: Client
> Affects Versions: 4.2.0
> Reporter: Andrew Polack
> Priority: Major
> Fix For: awaiting-response
>
>
> Running in 3.4 compatibility mode, Curator improperly appears to attempt to call the _close(I)_ method which does not exist on the 3.4 version of the Zookeeper API:
> {code:java}
> Uncaught error from thread [timeline-manager-akka.actor.default-dispatcher-4]: org.apache.zookeeper.ZooKeeper.close(I)Z, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[timeline-manager]
> java.lang.NoSuchMethodError: org.apache.zookeeper.ZooKeeper.close(I)Z
> at org.apache.curator.HandleHolder.internalClose(HandleHolder.java:164)
> at org.apache.curator.HandleHolder.closeAndClear(HandleHolder.java:78)
> at org.apache.curator.ConnectionState.close(ConnectionState.java:125)
> at org.apache.curator.CuratorZookeeperClient.close(CuratorZookeeperClient.java:266)
> at org.apache.curator.CuratorZookeeperClient.close(CuratorZookeeperClient.java:249)
> {code}
> This results in a failure to reconnect to Zookeeper when the service is restarted (presumably because the old connection was never properly released).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)