lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] [Commented] (SOLR-4725) Should we stop supporting "name" and "dataDir" in the autodiscover mode?
Date Wed, 17 Apr 2013 13:53:16 GMT


Mark Miller commented on SOLR-4725:

bq. Neither solr.xml nor solrconfig.xml,

That was solr.xml - got you - didn't realize that dataDir was an explicit option on top of
the ability to do <property>  - we don't want that. DataDir should only be specified
in solrconfig.xml and overridable with sys prop substitution.

Otherwise, we *should* let multiple cores point to the same data dir - perhaps someone is
doing something all read only and only wants one. That's fine. The lock factory is there for
to protect you from shooting yourself in the foot by accident. 
> Should we stop supporting "name" and "dataDir" in the autodiscover mode?
> ------------------------------------------------------------------------
>                 Key: SOLR-4725
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.3, 5.0
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>            Priority: Blocker
> Making this a blocker so we resolve it. Should be quick to code if we have consensus,
maybe nothing at all to do here.
> I'm not too happy with the fact that the new core discovery process has two real gotcha's.
The individual file can define 'name' and 'dataDir'. It seems too easy to
either use the same name for two different cores or use the same dataDir, just copy the
file around and fail to edit one them. In large installations this could be a bear to track
> Straw-man proposal is the we remove support for them both in discovery mode. The name
defaults to the directory in which is found and the data dir is immediately
below there.
> Currently, there are checks to fail to load either core if either 'name' or 'dataDir'
is defined in more than one core. I think the error reporting is weak, you probably have to
look in the log file and there should be a way to get this in the admin UI at least.
> Maybe the right thing to do is just leave it as-is and emphasize that specifying the
dataDir and name is expert level and you have to get it right, but I wanted to get wider exposure
to the problem before we push 4.3 out.

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message