Skip to content

Commit

Permalink
SOLR-17094: Close ObjectCache when closing CoreContainer (#2166)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Primault <vprimault@salesforce.com>
  • Loading branch information
pvcnt and Vincent Primault authored Dec 23, 2023
1 parent 17f8ee4 commit a04ec07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion solr/core/src/java/org/apache/solr/core/CoreContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a04ec07

Please sign in to comment.