[ 
https://issues.apache.org/jira/browse/SOLR-16066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Drob resolved SOLR-16066.
------------------------------
    Resolution: Duplicate

> 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
>            Priority: Major
>
> 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.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to