Apache Solr open-source search software
SOLR-6391: Improve message for CREATECOLLECTION failure due to missing numShards
Anshum Gupta8af2ef5345b1
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex d03b8558222..62a5a3cdf7a 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -398,6 +398,9 @@ Other Changes* SOLR-6388: Force upgrade of Apache POI dependency in Solr Cell to version3.10.1 to fix CVE-2014-3529 and CVE-2014-3574. (Uwe Schindler)+* SOLR-6391: Improve message for CREATECOLLECTION failure due to missing+ numShards (Anshum Gupta)+================== 4.9.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 acc95edf6bb..c5cb83ddc59 100644--- a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java@@ -2099,7 +2099,7 @@ public class OverseerCollectionProcessor implements Runnable, Closeable {}if (numSlices == null ) {- throw new SolrException(ErrorCode.BAD_REQUEST, NUM_SLICES + " is a required param");+ throw new SolrException(ErrorCode.BAD_REQUEST, NUM_SLICES + " is a required param (when using CompositeId router).");}int maxShardsPerNode = message.getInt(ZkStateReader.MAX_SHARDS_PER_NODE, 1);