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

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


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

commit 5c9d3d39f15a72b3d9659a5c431a4d24515d4f86
Author: Nihal Jain <[email protected]>
AuthorDate: Mon Feb 3 15:23:53 2025 +0530

    HBASE-29041 Set UncaughtException Handler for RegionServer ExecutorService 
(#6612) (#6637)
    
    Signed-off-by: Duo Zhang <[email protected]>
    Signed-off-by: Pankaj Kumar<[email protected]>
    Co-authored-by: DishaVaidh <[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 84817bad161..c0905cbcfcd 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