This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new fd27d68b183 HBASE-27335 HBase shell hang for a minute when quiting
(#4737)
fd27d68b183 is described below
commit fd27d68b183658a0c06c644cd7639d1ed12eaaad
Author: LiangJun He <[email protected]>
AuthorDate: Wed Aug 31 11:01:10 2022 +0800
HBASE-27335 HBase shell hang for a minute when quiting (#4737)
Signed-off-by: Duo Zhang <[email protected]>
(cherry picked from commit 6a7a91a256be7b51efb48cb341d9f0f9d21eb8ef)
---
.../java/org/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;