Vinayakumar B created ZOOKEEPER-4936:
----------------------------------------

             Summary: Make ZookeeperServer.shutdown(fullyShutdown) Non-final 
fix curator's TestingZookeeperMain
                 Key: ZOOKEEPER-4936
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4936
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: Vinayakumar B


Curator's 
[TestingZookeeperMain|https://github.com/apache/curator/blob/master/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java#L259]
 is used for integration testing in many projects.

It overrides `Zookeeper#shutdown(fullyShutdown)` to add additional logic. But 
recent change in this 
[commit|https://github.com/apache/zookeeper/commit/bc9afbf8ef1bc6156643d3d05c87fcf8411e9d8f]
 has made `Zookeeper#shutdown(fullyShutdown)` final.

Due to this 3.9.3 Zookeeper is unable to be used in TestingZooKeeperMain. 
Resulting in `java.lang.VerifyError: class 
org.apache.curator.test.TestingZooKeeperMain$TestZooKeeperServer overrides 
final method org.apache.zookeeper.server.ZooKeeperServer.shutdown(Z)V`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to