HBASE-19979 ReplicationSyncUp tool may leak Zookeeper connection (Pankaj Kumar)

This commit is contained in:
tedyu 2018-02-13 08:11:03 -08:00
parent f77b42b2af
commit 335b8a8e14
1 changed files with 3 additions and 3 deletions

View File

@ -110,14 +110,14 @@ 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);
} finally {
zkw.close();
}
manager.join();
zkw.close();
return (0);
}