HBASE-19979 ReplicationSyncUp tool may leak Zookeeper connection

This commit is contained in:
Pankaj Kumar 2018-02-13 08:59:02 -08:00 committed by Michael Stack
parent 8e8e1e5a1b
commit 39e191e559
1 changed files with 3 additions and 3 deletions

View File

@ -111,14 +111,14 @@ public class ReplicationSyncUp extends Configured implements Tool {
while (manager.getOldSources().size() > 0) {
Thread.sleep(SLEEP_TIME);
}
manager.join();
} catch (InterruptedException e) {
System.err.println("didn't wait long enough:" + e);
return (-1);
} finally {
zkw.close();
}
manager.join();
zkw.close();
return 0;
}