SOLR-5487: Replication factor error message doesn't match constraint

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1544050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2013-11-21 07:25:23 +00:00
parent f7d1b43c9e
commit 20591fd6f7
2 changed files with 4 additions and 1 deletions

View File

@ -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 Components

View File

@ -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) {