[ https://issues.apache.org/jira/browse/SOLR-17094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792951#comment-17792951 ]
ASF subversion and git services commented on SOLR-17094: -------------------------------------------------------- Commit 1209027537bf929e5a0149eda92d76571ce936ac in solr's branch refs/heads/main from Vincent P [ https://gitbox.apache.org/repos/asf?p=solr.git;h=1209027537b ] SOLR-17094: Close objects contained inside an ObjectCache (#2110) Co-authored-by: Vincent Primault <vprima...@salesforce.com> > Close objects contained inside an ObjectCache > --------------------------------------------- > > Key: SOLR-17094 > URL: https://issues.apache.org/jira/browse/SOLR-17094 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Vincent Primault > Priority: Minor > Time Spent: 0.5h > Remaining Estimate: 0h > > As a plugin author, I often need a place where to store an object which > should be a singleton, e.g., at CoreContainer-level. To do so, in spite of a > better place, I use the ObjectCache as a holder of my singleton. This makes > it easy to store and retrieve my singleton, but it is quite complex to clean > it up when CoreContainer is shutting down. > My proposal is hence to have ObjectCache to automatically close any Closeable > object that is stored within it, in order to serve this use case for plugin > authors. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org