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

Hoss Man commented on SOLR-930:
-------------------------------

1) i think you are miss-understanding the point of close() ... it's called by 
every person who uses the core once they are done with it to indicate they are 
done with it.  the resources are only truely freed once the count returns to 1 
... note the javadocs of hte method.

2) if you want to know if all the resources have been freed (ie: everyone using 
the core has closed it) use "isClosed()"


perhaps the confusion here is just the legacy name (close() was named back when 
SolrCore was a singleton i believe).



> SolrCore.close() : Warn in the logger when the internal reference count is > 0
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-930
>                 URL: https://issues.apache.org/jira/browse/SOLR-930
>             Project: Solr
>          Issue Type: Improvement
>         Environment: Java 6, Tomcat 6 
>            Reporter: Kay Kay
>            Assignee: Ryan McKinley
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-930.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> SolrCore.close() -> Add a warning statement when the internal reference count 
> is > 0. ( as opposed to 0, as expected ) - 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to