1.The word "shutdown" is a noun. The verb is spelled with a space. (#13855)

This commit is contained in:
Tritone 2024-03-08 10:11:43 +08:00 committed by GitHub
parent d4a1e0d9bb
commit 002a6a1b3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}