1.The word "shutdown" is a noun. The verb is spelled with a space. (#13855)
This commit is contained in:
parent
d4a1e0d9bb
commit
002a6a1b3e
|
|
@ -119,7 +119,7 @@ public class AbortPolicyWithReport extends ThreadPoolExecutor.AbortPolicy {
|
|||
// 0-1 - Thread pool is EXHAUSTED!
|
||||
logger.warn(COMMON_THREAD_POOL_EXHAUSTED, "too much client requesting provider", "", msg);
|
||||
|
||||
if (Boolean.parseBoolean(url.getParameter(DUMP_ENABLE, "true"))) {
|
||||
if (Boolean.parseBoolean(url.getParameter(DUMP_ENABLE, Boolean.TRUE.toString()))) {
|
||||
dumpJStack();
|
||||
}
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ public class AbortPolicyWithReport extends ThreadPoolExecutor.AbortPolicy {
|
|||
});
|
||||
} finally {
|
||||
guard.release();
|
||||
// must shutdown thread pool ,if not will lead to OOM
|
||||
// must shut down thread pool ,if not will lead to OOM
|
||||
if (pool != null) {
|
||||
pool.shutdown();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue