mirror of https://github.com/apache/lucene.git
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:
parent
f7d1b43c9e
commit
20591fd6f7
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue