mirror of https://github.com/apache/lucene.git
SOLR-13030: Close MetricsHistoryHandler inline.
This commit is contained in:
parent
5dc988f5ee
commit
a01d0d9ef9
|
@ -895,12 +895,8 @@ public class CoreContainer {
|
|||
}));
|
||||
|
||||
if (metricsHistoryHandler != null) {
|
||||
customThreadPool.submit(() -> Collections.singleton(metricsHistoryHandler).parallelStream().forEach(c -> {
|
||||
IOUtils.closeQuietly(c);
|
||||
}));
|
||||
customThreadPool.submit(() -> Collections.singleton(metricsHistoryHandler.getSolrClient()).parallelStream().forEach(c -> {
|
||||
IOUtils.closeQuietly(c);
|
||||
}));
|
||||
metricsHistoryHandler.close();
|
||||
IOUtils.closeQuietly(metricsHistoryHandler.getSolrClient());
|
||||
}
|
||||
|
||||
if (metricManager != null) {
|
||||
|
|
Loading…
Reference in New Issue