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