From fd27d68b183658a0c06c644cd7639d1ed12eaaad Mon Sep 17 00:00:00 2001 From: LiangJun He <2005hithlj@163.com> Date: Wed, 31 Aug 2022 11:01:10 +0800 Subject: [PATCH] HBASE-27335 HBase shell hang for a minute when quiting (#4737) Signed-off-by: Duo Zhang (cherry picked from commit 6a7a91a256be7b51efb48cb341d9f0f9d21eb8ef) --- .../apache/hadoop/hbase/client/ConnectionImplementation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java index 43e43cd0d32..909d045759a 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java @@ -515,7 +515,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable { } ThreadPoolExecutor tpe = new ThreadPoolExecutor(coreThreads, maxThreads, keepAliveTime, TimeUnit.SECONDS, workQueue, - new ThreadFactoryBuilder().setNameFormat(toString() + nameHint + "-pool-%d") + new ThreadFactoryBuilder().setDaemon(true).setNameFormat(toString() + nameHint + "-pool-%d") .setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build()); tpe.allowCoreThreadTimeOut(true); return tpe;