You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Elran Dvir (JIRA)" <ji...@apache.org> on 2014/12/14 14:34:13 UTC

[jira] [Commented] (SOLR-6063) allow core reloading with parameters in core admin

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

Elran Dvir commented on SOLR-6063:
----------------------------------

Hi all,

I am  attaching a new version of the patch.
When a core is changed from non transient to transient, it has to be closed first.
Otherwise, you will get the an exception like this:
REFCOUNT ERROR: unreferenced org.apache.solr.core.SolrCore@f922b95 (your_core_name) has a reference count of 1.

Thanks.

> allow  core reloading with parameters in core admin
> ---------------------------------------------------
>
>                 Key: SOLR-6063
>                 URL: https://issues.apache.org/jira/browse/SOLR-6063
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Elran Dvir
>         Attachments: SOLR-6063.patch
>
>
> The patch allows to add parameters to core admin reload command as in create command and it changes the core configuration as indicated in the parameters. 
> Any parameter that is not indicated in the command will be the same as before.
> For example, the command 
> solr/admin/cores?action=RELOAD&core=core0&transient=true
> will change the core to be transient.
> In my patch, I removed the parameter isTransientCore from the method registerCore in class CoreContainer. I chose to use cd.isTransient() instead.
> The patch is based on Solr 4.8  
> Thanks.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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