mirror of https://github.com/apache/lucene.git
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:
parent
422d7996fa
commit
39c1cf1972
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue