You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/08/12 09:33:00 UTC

[GitHub] [hbase] virajjasani commented on a change in pull request #2239: HBASE-24844 Exception on standalone (master) shutdown

virajjasani commented on a change in pull request #2239:
URL: https://github.com/apache/hbase/pull/2239#discussion_r469131166



##########
File path: hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java
##########
@@ -692,12 +692,12 @@ public void interruptedExceptionNoThrow(InterruptedException ie, boolean throwLa
    */
   @Override
   public void close() {
-    zkEventProcessor.shutdownNow();
     try {
       recoverableZooKeeper.close();
     } catch (InterruptedException e) {
       Thread.currentThread().interrupt();
     }

Review comment:
       oh wait, can we put `shutdownNow()` to `finally` block? Even without that it should be executed but just in case in future, more Exception handling might be lined up or if ZK client close throws some runtime exception, at least we will perform shutdown of threadpool in finally.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org