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