HBASE-19979 ReplicationSyncUp tool may leak Zookeeper connection
This commit is contained in:
parent
41f1e5c79b
commit
4594f7156d
|
@ -114,14 +114,14 @@ public class ReplicationSyncUp extends Configured implements Tool {
|
||||||
Thread.sleep(SLEEP_TIME);
|
Thread.sleep(SLEEP_TIME);
|
||||||
numberOfOldSource = manager.getOldSources().size();
|
numberOfOldSource = manager.getOldSources().size();
|
||||||
}
|
}
|
||||||
|
manager.join();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
System.err.println("didn't wait long enough:" + e);
|
System.err.println("didn't wait long enough:" + e);
|
||||||
return (-1);
|
return (-1);
|
||||||
|
} finally {
|
||||||
|
zkw.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
manager.join();
|
|
||||||
zkw.close();
|
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue