[
https://issues.apache.org/jira/browse/SOLR-5028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704939#comment-13704939
]
Tomás Fernández Löbbe commented on SOLR-5028:
---------------------------------------------
bq. it "sort of" works right now
not with "old style" solr.xml, there the properties are being loaded with the
wrong path:
{code:java}
propMap.put(CfgProp.SOLR_SHARDHANDLERFACTORY_CLASS,
config.getVal("solr/shardHandlerFactory/@class", false));
propMap.put(CfgProp.SOLR_SHARDHANDLERFACTORY_NAME,
config.getVal("solr/shardHandlerFactory/@name", false));
propMap.put(CfgProp.SOLR_SHARDHANDLERFACTORY_CONNTIMEOUT,
config.getVal("solr/shardHandlerFactory/int[@name='connTimeout']",
false));
propMap.put(CfgProp.SOLR_SHARDHANDLERFACTORY_SOCKETTIMEOUT,
config.getVal("solr/shardHandlerFactory/int[@name='socketTimeout']",
false));
{code}
maybe replace those values with
{code:java}
propMap.put(CfgProp.SOLR_SHARDHANDLERFACTORY_CLASS,
config.getVal(getShardHandlerFactoryPath() + "/@class", false));
...
{code}
> Incorrect ShardHandlerFactory creation
> --------------------------------------
>
> Key: SOLR-5028
> URL: https://issues.apache.org/jira/browse/SOLR-5028
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.0, 4.4
> Reporter: Tomás Fernández Löbbe
> Attachments: SOLR-5082.patch
>
>
> It seems to me that there are two bugs in the ShardHandlerFactoryCreation
> that cancel each other and it seems to be working with the old style
> solr.xml, but not with the "new style". ConfigSolrOldXml seems to be
> expecting the shardHandlerFactory with the xpath:
> solr/shardHandlerFactory/@class
> Instead of solr/*cores*/shardHandlerFactory/@class as it used to be. This is
> never caught because in the CoreContainer the ShardHandlerFactory is
> initialized using
> "configSolr.getConfig().getNode("solr/cores/shardHandlerFactory", false);"
> instead of "configSolr.get(CfgProp.SOLR_SHARDHANDLERFACTORY_CLASS, null);" or
> something like that. However, if you use the "new style" xml, the
> CoreContainer will still try to initialize the factory like that, and won't
> find the SHF.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]