SOLR-6391: Improve message for CREATECOLLECTION failure due to missing numShards

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1619263 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anshum Gupta 2014-08-20 23:20:28 +00:00
parent e21c07f683
commit 8af2ef5345
2 changed files with 4 additions and 1 deletions

View File

@ -398,6 +398,9 @@ Other Changes
* SOLR-6388: Force upgrade of Apache POI dependency in Solr Cell to version
3.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 Components

View File

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