HBASE-19979 ReplicationSyncUp tool may leak Zookeeper connection

This commit is contained in:
Pankaj Kumar 2018-02-13 08:43:43 -08:00 committed by Michael Stack
parent 41f1e5c79b
commit 4594f7156d
1 changed files with 3 additions and 3 deletions

View File

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