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

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


The following commit(s) were added to refs/heads/branch-3 by this push:
     new ee13ebf1ebf HBASE-29041 Set UncaughtException Handler for RegionServer 
ExecutorService (#6612)
ee13ebf1ebf is described below

commit ee13ebf1ebf7603855dec2549ba266cfe391d370
Author: DishaVaidh <[email protected]>
AuthorDate: Mon Jan 27 15:44:33 2025 +0530

    HBASE-29041 Set UncaughtException Handler for RegionServer ExecutorService 
(#6612)
    
    Signed-off-by: Pankaj Kumar<[email protected]>
---
 .../src/main/java/org/apache/hadoop/hbase/executor/ExecutorService.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/executor/ExecutorService.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/executor/ExecutorService.java
index 6f5acca3f21..1eab8066aa6 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/executor/ExecutorService.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/executor/ExecutorService.java
@@ -32,6 +32,7 @@ import java.util.concurrent.ThreadPoolExecutor;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicLong;
 import org.apache.hadoop.hbase.monitoring.ThreadMonitoring;
+import org.apache.hadoop.hbase.util.Threads;
 import org.apache.yetus.audience.InterfaceAudience;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -253,6 +254,7 @@ public class ExecutorService {
       ThreadFactoryBuilder tfb = new ThreadFactoryBuilder();
       tfb.setNameFormat(this.name + "-%d");
       tfb.setDaemon(true);
+      tfb.setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER);
       this.threadPoolExecutor.setThreadFactory(tfb.build());
     }
 

Reply via email to