HBASE-27335 HBase shell hang for a minute when quiting (#4737)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 6a7a91a256be7b51efb48cb341d9f0f9d21eb8ef)
This commit is contained in:
parent
b0edb77b72
commit
5f6998b955
@ -541,7 +541,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user