SOLR-7502: start script should not try to create config set for .system collection

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1678208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2015-05-07 13:53:57 +00:00
parent 3e20086499
commit 32d8a07281
2 changed files with 5 additions and 1 deletions

View File

@ -244,6 +244,8 @@ Bug Fixes
* SOLR-7494: Facet Module - unique() facet function was wildly inaccurate for high cardinality * SOLR-7494: Facet Module - unique() facet function was wildly inaccurate for high cardinality
fields. (Andy Crossen, yonik) fields. (Andy Crossen, yonik)
* SOLR-7502: start script should not try to create configset for .system collection (Noble Paul)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -1199,7 +1199,9 @@ public class SolrCLI {
boolean configExistsInZk = boolean configExistsInZk =
cloudSolrClient.getZkStateReader().getZkClient().exists("/configs/"+confname, true); cloudSolrClient.getZkStateReader().getZkClient().exists("/configs/"+confname, true);
if (configExistsInZk) { if (".system".equals(collectionName)) {
//do nothing
} else if (configExistsInZk) {
System.out.println("Re-using existing configuration directory "+confname); System.out.println("Re-using existing configuration directory "+confname);
} else { } else {
String configSet = cli.getOptionValue("confdir", DEFAULT_CONFIG_SET); String configSet = cli.getOptionValue("confdir", DEFAULT_CONFIG_SET);