This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new a04ec07eadf SOLR-17094: Close ObjectCache when closing CoreContainer
(#2166)
a04ec07eadf is described below
commit a04ec07eadf72a5957d1f159f77f36a2c7b990ee
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 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 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