SOLR-5437

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1541600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2013-11-13 16:40:39 +00:00
parent 422d7996fa
commit 39c1cf1972
1 changed files with 3 additions and 1 deletions

View File

@ -273,8 +273,10 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
}
Replica replica = slice.getReplica(replicaName);
if(replica == null){
ArrayList<String> l = new ArrayList<String>();
for (Replica r : slice.getReplicas()) l.add(r.getName());
throw new SolrException(ErrorCode.BAD_REQUEST, "Invalid replica : " + replicaName + " in shard/collection : "
+ shard + "/"+ collectionName);
+ shard + "/"+ collectionName + " available replicas are "+ StrUtils.join(l,','));
}
String baseUrl = replica.getStr(ZkStateReader.BASE_URL_PROP);