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 <[email protected]>
(cherry picked from commit 6a7a91a)
  • Loading branch information
2005hithlj authored and Apache9 committed Aug 31, 2022
1 parent b0edb77 commit 5f6998b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,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 5f6998b

Please sign in to comment.