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

Gary Yue commented on SOLR-5931:
--------------------------------

thanks Eric. I'll ask on the user list for these kind of questions going 
forward.

Regarding your suggestion: i am aware of such support, but not sure how this is 
different from changing the "replication for slave" section of solrconfig.xml 
on master solr. In both cases, you will need to make a change on master box, 
and it can take up to few minutes for the files to be replicated (especially if 
u have multiple level of replication hierarchy, for example master A-> repeater 
B->slave C). I understand that this may be the only workaround available 
though, as there appears to be no other way of getting RELOAD to re-read a 
local property file (like solrconfig.properties) which is not meant to be 
replicable.


> solrcore.properties is not reloaded when core is reloaded
> ---------------------------------------------------------
>
>                 Key: SOLR-5931
>                 URL: https://issues.apache.org/jira/browse/SOLR-5931
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.7
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>
> When I change solrcore.properties for a core, and then reload the core, the 
> previous values of the properties in that file are still in effect. If I 
> *unload* the core and then add it back, in the “Core Admin” section of the 
> admin UI, then the changes in solrcore.properties do take effect.
> My specific test case is a DataImportHandler where {{db-data-config.xml}} 
> uses a property to decide which DB host to talk to:
> {code:xml}
> <dataSource driver="org.postgresql.Driver" name="meta" 
> url="jdbc:postgresql://${dbhost}/${solr.core.name}" .../>
> {code}
> When I change that {{dbhost}} property in {{solrcore.properties}} and reload 
> the core, the next dataimport operation still connects to the previous DB 
> host. Reloading the dataimport config does not help. I have to unload the 
> core (or fully restart the whole Solr) for the properties change to take 
> effect.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to