diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java index 1514aafe2ee..ce5e05b2657 100644 --- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java +++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java @@ -1299,7 +1299,11 @@ public void shutdown() { } } - objectCache.clear(); + try { + objectCache.close(); + } catch (IOException e) { + log.warn("Exception while closing ObjectCache.", e); + } // It's still possible that one of the pending dynamic load operation is waiting, so wake it // up if so. Since all the pending operations queues have been drained, there should be