Skip to content

Commit 5f6998b

Browse files
2005hithljApache9
authored andcommitted
HBASE-27335 HBase shell hang for a minute when quiting (#4737)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 6a7a91a)
1 parent b0edb77 commit 5f6998b

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
@@ -541,7 +541,7 @@ private ThreadPoolExecutor getThreadPool(int maxThreads, int coreThreads, String
541541
}
542542
ThreadPoolExecutor tpe =
543543
new ThreadPoolExecutor(coreThreads, maxThreads, keepAliveTime, TimeUnit.SECONDS, workQueue,
544-
new ThreadFactoryBuilder().setNameFormat(toString() + nameHint + "-pool-%d")
544+
new ThreadFactoryBuilder().setDaemon(true).setNameFormat(toString() + nameHint + "-pool-%d")
545545
.setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build());
546546
tpe.allowCoreThreadTimeOut(true);
547547
return tpe;

0 commit comments

Comments
 (0)