Skip to content

Commit 6a7a91a

Browse files
authored
HBASE-27335 HBase shell hang for a minute when quiting (apache#4737)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent bd03246 commit 6a7a91a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ private ThreadPoolExecutor getThreadPool(int maxThreads, int coreThreads, String
549549
}
550550
ThreadPoolExecutor tpe =
551551
new ThreadPoolExecutor(coreThreads, maxThreads, keepAliveTime, TimeUnit.SECONDS, workQueue,
552-
new ThreadFactoryBuilder().setNameFormat(toString() + nameHint + "-pool-%d")
552+
new ThreadFactoryBuilder().setDaemon(true).setNameFormat(toString() + nameHint + "-pool-%d")
553553
.setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build());
554554
tpe.allowCoreThreadTimeOut(true);
555555
return tpe;

0 commit comments

Comments
 (0)