Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLR-17094: Close ObjectCache when closing CoreContainer #2166

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

pvcnt
Copy link
Contributor

@pvcnt pvcnt commented Dec 20, 2023

https://issues.apache.org/jira/browse/SOLR-17094

Description

In #2110 was introduced the capability for ObjectCache to close Closeable objects that were put in it. Unfortunately, despite itself implementing Closeable, the ObjectCache was never closed by CoreContainer when shutting down.

Solution

CoreContainer is now closing the ObjectCache when shutting down.

Tests

None

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

@dsmiley dsmiley merged commit a04ec07 into apache:main Dec 23, 2023
2 checks passed
dsmiley pushed a commit that referenced this pull request Dec 23, 2023
Co-authored-by: Vincent Primault <vprimault@salesforce.com>
@pvcnt pvcnt deleted the close-objectcache branch January 18, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants