Reuse zkclient in BestPossibleExternalViewVerifier and fix resource leak (#2180)
authorQi (Quincy) Qu <qqu@linkedin.com>
Mon, 1 Aug 2022 17:49:12 +0000 (10:49 -0700)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 17:49:12 +0000 (10:49 -0700)
commit132715785e90803ad8991da491f4621db1668fb8
treeeb9696fe12b014ecb8f11627446bad53b1877cdd
parent49aef7c54a7f93f119f0b921068235d3dd52cd25
Reuse zkclient in BestPossibleExternalViewVerifier and fix resource leak (#2180)

Reuse zkclient in BestPossibleExternalViewVerifier and fix resource leak

Reuse zkclient in verifier and improve resource closure logic to avoid resource leak.
helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/ReadOnlyWagedRebalancer.java
helix-core/src/main/java/org/apache/helix/manager/zk/ZkBucketDataAccessor.java
helix-core/src/main/java/org/apache/helix/tools/ClusterVerifiers/BestPossibleExternalViewVerifier.java
helix-core/src/main/java/org/apache/helix/tools/ClusterVerifiers/ZkHelixClusterVerifier.java
helix-rest/src/main/java/org/apache/helix/rest/server/ServerContext.java