Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-520

NoSuchMethod Exception on curator.close() in 3.4 compatibility mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 4.2.0
    • 4.2.0
    • Client
    • None

    Description

      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: 

      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)
      
      

      This results in a failure to reconnect to Zookeeper when the service is restarted (presumably because the old connection was never properly released). 

      Attachments

        Activity

          People

            Unassigned Unassigned
            alpsmac Andrew Polack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: