lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject copy/paste typo in solr.cloud.Overseer.getShardNames exception
Date Sun, 08 Sep 2013 17:17:32 GMT
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
Mime
View raw message