Apache Lucene open-source search software
SOLR-5487: Replication factor error message doesn't match constraint
Shalin Shekhar Mangar20591fd6f75e
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex fca31985424..0711db37d18 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -144,6 +144,9 @@ Other Changes* SOLR-5404: The example config references deprecated classes.(Uwe Schindler, Rafał Kuć via Mark Miller)+* SOLR-5487: Replication factor error message doesn't match constraint.+ (Patrick Hunt via shalin)+================== 4.6.0 ==================Versions of Major Componentsdiff --git a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.javaindex c8e50b00b19..c0047628ed4 100644--- a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java@@ -1328,7 +1328,7 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {List<String> createNodeList = ((createNodeSetStr = message.getStr(CREATE_NODE_SET)) == null)?null:StrUtils.splitSmart(createNodeSetStr, ",", true);if (repFactor <= 0) {- throw new SolrException(ErrorCode.BAD_REQUEST, REPLICATION_FACTOR + " must be greater than or equal to 0");+ throw new SolrException(ErrorCode.BAD_REQUEST, REPLICATION_FACTOR + " must be greater than 0");}if (numSlices <= 0) {