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

Erick Erickson updated SOLR-5318:
---------------------------------

    Attachment: SOLR-5318.patch

New patch with tests, committing shortly. I changed Oliver's approach a bit so 
we don't need new methods in CoreContainer.

I'm not quite sure we really need all the variants of register, it seems like 
we always have things like the core name, whether the core is transient, all 
that stuff already in the CoreDescriptor we pass around, except maybe in the 
case of renaming the core. Could all this be made simpler? But that's for 
another day.

> create command don't take into account the transient core property
> ------------------------------------------------------------------
>
>                 Key: SOLR-5318
>                 URL: https://issues.apache.org/jira/browse/SOLR-5318
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.4, 4.6
>            Reporter: olivier soyez
>            Assignee: Erick Erickson
>            Priority: Minor
>         Attachments: SOLR-5318.patch, SOLR-5318.patch
>
>
> the create core admin command don't take into account the transient core 
> property, when the core is registered (so, the core will be never closed by 
> the transient core cache)
> 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";
> Look at the status :
> http://ip:port/solr/admin/cores?action=STATUS
> All cores are still loaded.
> One core should not be loaded (closed by the transient cache)
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to