You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2016/10/20 14:58:58 UTC
[jira] [Commented] (SOLR-9533) Reload core config when a core is
reloaded
[ https://issues.apache.org/jira/browse/SOLR-9533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592047#comment-15592047 ]
Joel Bernstein commented on SOLR-9533:
--------------------------------------
I've been reviewing the code around the core reload and it looks like the easiest approach to loading the properties would be the following:
1) In the SolrCore.reload method create a new CoreDescriptor from the old CoreDescriptor. We can do this easily because there is a constructor in the CoreDescriptor already that takes an existing CoreDescriptor and deep clones it.
2) Then call CoreDescriptor.loadExtraProperties before passing it to the constructor of the new core.
I'll put a patch together for this. I'll also investigate the existing test cases for a core reload and see how easy it is to test the properties reload.
> Reload core config when a core is reloaded
> ------------------------------------------
>
> Key: SOLR-9533
> URL: https://issues.apache.org/jira/browse/SOLR-9533
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 6.2
> Reporter: Gethin James
> Assignee: Joel Bernstein
>
> I am reloading a core using {{coreContainer.reload(coreName)}}. However it doesn't seem to reload the configuration. I have changed solrcore.properties on the file system but the change doesn't get picked up.
> The coreContainer.reload method seems to call:
> {code}
> CoreDescriptor cd = core.getCoreDescriptor();
> {code}
> I can't see a way to reload CoreDescriptor, so it isn't picking up my changes. It simply reuses the existing CoreDescriptor.
--
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