HBASE-24844 RecoverableZookeeper#close followed by ExecutorService shutdown
* Resolves Exception on standalone (master) shutdown Closes #2239 Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
8ccf643fdc
commit
28a05a0f87
|
@ -694,11 +694,12 @@ public class ZKWatcher implements Watcher, Abortable, Closeable {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
zkEventProcessor.shutdownNow();
|
|
||||||
try {
|
try {
|
||||||
recoverableZooKeeper.close();
|
recoverableZooKeeper.close();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
|
} finally {
|
||||||
|
zkEventProcessor.shutdownNow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue