In org.apache.solr.cloud.Overseer.getShardNames of branch_4x, the second exception message
is an exact copy of the first, but probably should be something like “shards param must
specify at least one shard”:
static void getShardNames(List<String> shardNames, String shards) {
if(shards ==null)
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "shards" + " is a required
param");
for (String s : shards.split(",")) {
if(s ==null || s.trim().isEmpty()) continue;
shardNames.add(s.trim());
}
if(shardNames.isEmpty())
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "shards" + " is a required
param");
}
-- Jack Krupansky
|