This is an automated email from the ASF dual-hosted git repository.
zhangduo 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 6a7a91a256b HBASE-27335 HBase shell hang for a minute when quiting
(#4737)
6a7a91a256b is described below
commit 6a7a91a256be7b51efb48cb341d9f0f9d21eb8ef
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]>
---
.../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 8759adc2e97..4c828036fd0 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
@@ -549,7 +549,7 @@ public 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;