You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2010/07/03 00:35:50 UTC

[jira] Commented: (SOLR-1981) solr.xml should fail to load if multiple cores with the same name

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

Hoss Man commented on SOLR-1981:
--------------------------------

Note: what i'm propossing here actually breaks back-compat in a way that i think is good.

at the moment, if you declare multiple cores with the exact same name, solr will initialize the first, then initialize the second, which will shutdown the first -- in effect, silently ignoring the first declaration.

I'm proposing a hard failure during solr.xml config parsing, before any SolrCores are ever initialized.

> solr.xml should fail to load if multiple cores with the same name
> -----------------------------------------------------------------
>
>                 Key: SOLR-1981
>                 URL: https://issues.apache.org/jira/browse/SOLR-1981
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>         Attachments: SOLR-1981.patch
>
>
> As noted in email a while back...
> http://search.lucidimagination.com/search/document/674bf5dfbbb349bc/multiple_cores_w_same_name_in_solr_xml
> {quote}
> but there is currently no assertion that every core have a name, or that the
> names be unique before the SolrCore is constructed ... it's not until the core is registered that an error will be
> generated if the core name is null, or that the previous core with an identicle name will be close()ed.
> {quote}
> I think we should fail fast if solr.xml specifies the same name more then once

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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