This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 02f4d9a2fed SOLR-17094: Close ObjectCache when closing CoreContainer
(#2166)
02f4d9a2fed is described below
commit 02f4d9a2fed5c22aee59fbc5a09be92eee892027
Author: Vincent P <[email protected]>
AuthorDate: Sat Dec 23 07:15:05 2023 +0100
SOLR-17094: Close ObjectCache when closing CoreContainer (#2166)
Co-authored-by: Vincent Primault <[email protected]>
---
solr/core/src/java/org/apache/solr/core/CoreContainer.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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 52bcdd5a676..0bdfb5fb4e6 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
@@ -1301,7 +1301,11 @@ public class CoreContainer {
}
}
- 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