HBASE-13797 Fix resource leak in HBaseFsck
This commit is contained in:
parent
0c90231374
commit
4545420d61
@ -3345,7 +3345,11 @@ public class HBaseFsck extends Configured implements Closeable {
|
||||
KeeperException {
|
||||
undeployRegions(hi);
|
||||
ZooKeeperWatcher zkw = createZooKeeperWatcher();
|
||||
try {
|
||||
ZKUtil.deleteNode(zkw, zkw.getZNodeForReplica(hi.metaEntry.getReplicaId()));
|
||||
} finally {
|
||||
zkw.close();
|
||||
}
|
||||
}
|
||||
|
||||
private void assignMetaReplica(int replicaId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user