Houston Putman created SOLR-16066:
-------------------------------------
Summary: Fix unmanaged Thread in ZkController
Key: SOLR-16066
URL: https://issues.apache.org/jira/browse/SOLR-16066
Project: Solr
Issue Type: Sub-task
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Houston Putman
Currently the following is used to in {{ZKController.fireListeners()}}
{code:java}
new Thread(() -> {
log.debug("Running listeners for {}", zkDir);
for (final Runnable listener : listenersCopy) {
try {
listener.run();
} catch (Exception e) {
log.warn("listener throws error", e);
}
}
}, "ZKEventListenerThread").start(); {code}
This causes leaked threads in a variety of tests. We should either start to use
a separate thread pool for this (and possibly run each listener in a separate
thread), or merely run it in the same thread.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]