From 20591fd6f75eb479a2e685d049e116c80cb96ca1 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Thu, 21 Nov 2013 07:25:23 +0000 Subject: [PATCH] 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 --- solr/CHANGES.txt | 3 +++ .../org/apache/solr/cloud/OverseerCollectionProcessor.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 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 Components diff --git a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java index 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 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) {