[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15539789#comment-15539789 ] Alexandre Rafalovitch commented on SOLR-5931: - This case seems to be a mix of lacked-features, maybe-bug, and is again an old version of Solr (so may have been fixed already). I don't see any next action in this. I think it may be easiest to close this issue and open a new one if something like this comes up against latest Solr. > 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} > 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.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680822#comment-14680822 ] Brad commented on SOLR-5931: +1 > 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} > 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.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320258#comment-14320258 ] Erick Erickson commented on SOLR-5931: -- bq: When this issue will be fixed. Patches always welcome, see: http://wiki.apache.org/solr/HowToContribute > 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} > 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.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14319770#comment-14319770 ] Balaji commented on SOLR-5931: -- When this issue will be fixed. I am in Production phase. After upgrading from Solr 4.1 to 4.10.3, In final testing stage only I have found this issue . Could you please suggest me any solution for this issue. And I have tried what Shalin Shekhar Mangar suggested to add an xml file. Please suggest something. Thanks in advance. > 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} > 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.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043391#comment-14043391 ] Shalin Shekhar Mangar commented on SOLR-5931: - bq. Does this qualify as a "bug" Shalin Shekhar Mangar ? I'd say so :) > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043093#comment-14043093 ] Dominik Siebel commented on SOLR-5931: -- Addition: It also seems that properties linked via solr.xml core attribute "properties" are not reloading anymore (version 4.6). I used to use this file to dynamically enable/disable replication for specific nodes and reload the core. Now I have to restart the whole Node. This definitely worked before (version 4.3) Does this qualify as a "bug" [~shalinmangar] ? ;) > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956190#comment-13956190 ] Gary Yue commented on SOLR-5931: thanks Shawn. This should work for me! > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956051#comment-13956051 ] Shawn Heisey commented on SOLR-5931: {quote} Is there a good workaround in the meantime? We need a quick way to switch master URL on individual the slaves in case of site issues. Updating solrconfig.xml directly for particular slave doesn't work well because the change will get overwritten on each replication (unless we change this in master's solrconfig as well) {quote} One option is using xinclude in your solrconfig.xml file. In solrconfig.xml, you would have something like this: {code} http://www.w3.org/2001/XInclude";> http://default_master:port/solr/corename {code} With this config, normally masterUrl does not need to exist. When you need to switch the master URL, create masterUrl.xml in the same location as solrconfig.xml and reload/restart. It needs contents like this: {code} http://master_host:port/solr/corename {code} You can also do this without the fallback, in which case you'd use a config like this and masterUrl.xml would always need to exist. {code} http://www.w3.org/2001/XInclude";> {code} As long as you don't include masterUrl.txt in the list of config files to replicate, it won't get overwritten on the slave. This is only to give you the general idea of xinclude. You can rearrange this in any way that you require. > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955756#comment-13955756 ] Erick Erickson commented on SOLR-5931: -- Gary: First, this would have been best asked on the user's list first... But if you're using old-style master/slave configurations, you can configure the replication to take particular files from the master and replicate them to a differently-named file on the slave. See the example here (conffiles is the param). Does that work? See: https://cwiki.apache.org/confluence/display/solr/Index+Replication > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955475#comment-13955475 ] Gary Yue commented on SOLR-5931: Is there a good workaround in the meantime? We need a quick way to switch master URL on individual the slaves in case of site issues. Updating solrconfig.xml directly for particular slave doesn't work well because the change will get overwritten on each replication (unless we change this in master's solrconfig as well) Also, looks like i can't even call "CREATE" with the new property b/c starting in solr 4.3+, it will return throw an error and ask you to call "RELOAD" instead. (where as in solr3.x this i s essentially doing a RELOAD with new properties) thx! > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955386#comment-13955386 ] Shalin Shekhar Mangar commented on SOLR-5931: - Yeah, this makes sense. The properties should be reloaded upon core reload. The thing is that I can't find how these properties make their way into DIH. I'll have to setup an example and step through with a debugger. I don't think I'll find the time this week. > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955153#comment-13955153 ] Alan Woodward commented on SOLR-5931: - I don't think it would have worked when I started looking at this code, but I can't speak for what it did before... I guess what needs to be done is to add a 'reload' method to CoresLocator which will update the CoreDescriptor - at the moment CDs are immutable across the lifetime of the CoreContainer, except for create() and unload() calls (which is why this works if you unload and then create the core). > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955131#comment-13955131 ] Erick Erickson commented on SOLR-5931: -- I'm pretty sure this never worked. That said, I agree that it _should_ work. Shalin: So dont' waste any time looking for "what changed to break this functionality", I strongly doubt you'll find anything like that. This is just new functionality... > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955085#comment-13955085 ] Gunnlaugur Thor Briem commented on SOLR-5931: - I can't say for sure whether this worked earlier (I only just started to use solrcore.properties to control this, at the same time as I was upgrading exactly like Gary, from 3.5 to 4.7). In any case, I do consider it a bug, even if only in the sense of “violating the principle of least astonishment.” : ) Applying configuration changes is the whole point of reloading the core, for me at least — and changes in solrconfig.xml and schema.xml and db-data-config.xml do get applied, so it seems incongruous for solrcore.properties to be different. > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954986#comment-13954986 ] Gary Yue commented on SOLR-5931: Hi, I also notice the same problem. (I am upgrading from 3.5 to 4.7) I used to be able to define master.url in solrcore.properties, and any changes there will take effect after an reload. However, this is no longer working on 4.7. I notice the doc says: Starting with Solr4.0, the RELOAD command is implemented in a way that results a "live" reloads of the SolrCore, reusing the existing various objects such as the SolrIndexWriter. As a result, some configuration options can not be changed and made active with a simple RELOAD... IndexWriter related settings in location --- Not sure if this includes properties defined in solrcore.properties file. Gary > 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} > 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
[jira] [Commented] (SOLR-5931) solrcore.properties is not reloaded when core is reloaded
[ https://issues.apache.org/jira/browse/SOLR-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954969#comment-13954969 ] Shalin Shekhar Mangar commented on SOLR-5931: - Are you sure this used to work ever? I mean is it a bug or an enhancement request? > 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} > 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