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) {
|
if (metricsHistoryHandler != null) {
|
||||||
customThreadPool.submit(() -> Collections.singleton(metricsHistoryHandler).parallelStream().forEach(c -> {
|
metricsHistoryHandler.close();
|
||||||
IOUtils.closeQuietly(c);
|
IOUtils.closeQuietly(metricsHistoryHandler.getSolrClient());
|
||||||
}));
|
|
||||||
customThreadPool.submit(() -> Collections.singleton(metricsHistoryHandler.getSolrClient()).parallelStream().forEach(c -> {
|
|
||||||
IOUtils.closeQuietly(c);
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (metricManager != null) {
|
if (metricManager != null) {
|
||||||
|
|
Loading…
Reference in New Issue