This is an automated email from the ASF dual-hosted git repository.

elserj pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 46ea169  HBASE-25279 Make ZKWatcher ExecutorService launch daemon 
threads
46ea169 is described below

commit 46ea169ea7f69b8fc8a05851ea3921494536a5ab
Author: Josh Elser <els...@apache.org>
AuthorDate: Thu Nov 12 16:52:58 2020 -0500

    HBASE-25279 Make ZKWatcher ExecutorService launch daemon threads
    
    Closes #2651
    
    Signed-off-by: Duo Zhang <zhang...@apache.org>
    Signed-off-by: Yulin Niu <niuyu...@apache.org>
---
 .../src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java
 
b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java
index 136134d..7a9fdd6 100644
--- 
a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java
+++ 
b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java
@@ -97,7 +97,7 @@ public class ZKWatcher implements Watcher, Abortable, 
Closeable {
   // It is ok to do it in a single thread because the Zookeeper ClientCnxn 
already serializes the
   // requests using a single while loop and hence there is no performance 
degradation.
   private final ExecutorService zkEventProcessor = 
Executors.newSingleThreadExecutor(
-    new ThreadFactoryBuilder().setNameFormat("zk-event-processor-pool-%d")
+    new 
ThreadFactoryBuilder().setNameFormat("zk-event-processor-pool-%d").setDaemon(true)
       .setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build());
 
   private final Configuration conf;

Reply via email to