You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2013/11/07 17:47:18 UTC

[jira] [Updated] (SOLR-5366) Too many close on transient core with unload command

     [ https://issues.apache.org/jira/browse/SOLR-5366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erick Erickson updated SOLR-5366:
---------------------------------

    Attachment: SOLR-5366.patch

Building on Olivier's patch. I think there was a race condition possible (but unlikely) where the close could be pending on the transient core, so I changed the code a bit to avoid that.

Thanks Olivier!

Committing to trunk momentarily, 4x a in a bit.

> Too many close on transient core with unload command
> ----------------------------------------------------
>
>                 Key: SOLR-5366
>                 URL: https://issues.apache.org/jira/browse/SOLR-5366
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.4, 4.6
>            Reporter: olivier soyez
>            Assignee: Erick Erickson
>            Priority: Minor
>              Labels: patch
>         Attachments: SOLR-5366.patch, SOLR-5366.patch
>
>
> Too many close on transient core with unload command, because already closed by transientcache 
> To reproduce :
> set transientCacheSize=2 and start with no cores
> Create 3 cores :
> curl "http://ip:port/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instanceDir_coreX&dataDir=path_to_dataDir_coreX&loadOnStartup=false&transient=true"
> Execute :
> curl "http://ip:port/solr/core1/select?q=*:*"
> curl "http://ip:port/solr/core2/select?q=*:*"
> curl "http://ip:port/solr/core3/select?q=*:*"
> curl "http://ip:port/solr/admin/cores?action=UNLOAD&core=core1"
> And in Solr logs :
> ERROR org.apache.solr.core.SolrCore  – Too many close [count:-1] on org.apache.solr.core.SolrCore@20e5ace9. Please report this exception to solr-user@lucene.apache.org
> The patch in attachment is for svn solr branch_4X (revision number 1526418)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org