[ 
https://issues.apache.org/jira/browse/SOLR-17094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799997#comment-17799997
 ] 

ASF subversion and git services commented on SOLR-17094:
--------------------------------------------------------

Commit a04ec07eadf72a5957d1f159f77f36a2c7b990ee in solr's branch 
refs/heads/main from Vincent P
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=a04ec07eadf ]

SOLR-17094: Close ObjectCache when closing CoreContainer (#2166)

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
>             Fix For: 9.5
>
>          Time Spent: 50m
>  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

Reply via email to