SOLR-13030: Close MetricsHistoryHandler inline.

This commit is contained in:
markrmiller 2018-11-30 18:13:26 -06:00
parent 5dc988f5ee
commit a01d0d9ef9
1 changed files with 2 additions and 6 deletions

View File

@ -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) {