Skip to content

Commit

Permalink
HBASE-27335 HBase shell hang for a minute when quiting (#4737)
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
2005hithlj committed Aug 31, 2022
1 parent bd03246 commit 6a7a91a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private ThreadPoolExecutor getThreadPool(int maxThreads, int coreThreads, String
}
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;
Expand Down

0 comments on commit 6a7a91a

Please sign in to comment.