[
https://issues.apache.org/jira/browse/SOLR-18218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079614#comment-18079614
]
ASF subversion and git services commented on SOLR-18218:
--------------------------------------------------------
Commit 8498273a9b9577b45e3a6394af1b180c2e863494 in solr's branch
refs/heads/main from Nazerke Seidan
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=8498273a9b9 ]
SOLR-18218: Improve ExecutorUtil error logging (#4399)
> Improve ExecutorUtil error logging
> ----------------------------------
>
> Key: SOLR-18218
> URL: https://issues.apache.org/jira/browse/SOLR-18218
> Project: Solr
> Issue Type: Improvement
> Components: Server
> Affects Versions: main(11.0)
> Reporter: Jason Gerlowski
> Priority: Minor
> Labels: logging, newdev, pull-request-available, usability
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> On a graceful shutdown Solr's CoreContainer.shutdown method attempts to
> shutdown a number of 'ExecutorService' (i.e. threadpool) instances.
> In most cases, Solr waits 60 seconds for each threadpool to shutdown. If
> threads are still running after this timeout Solr will log an error message
> (see below) and then attempt a more forceful shutdown of the ExecutorService.
> {code}
> Threads from pool
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor@769b724c[Shutting
> down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks =
> 4] did not forcefully stop.
> {code}
> This message is great as far as it goes but it could be better.
> Particularly, it doesn't tell admins or other debuggers *which*
> ExecutorService was having trouble shutting down. Was it the "async task
> executor"? The core-loader? The index-fingerprinter? The "customThreadPool"
> that we create specifically during the shutdown process? Something else?
> A better error message here would save admins debugging shutdown hangs or
> slowness a ton of work narrowing things down.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]