mirror of https://github.com/apache/lucene.git
SOLR-5311, invalid error message
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1537978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13da2a505a
commit
be0bb552ee
|
@ -273,7 +273,8 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
|
||||||
}
|
}
|
||||||
Replica replica = slice.getReplica(replicaName);
|
Replica replica = slice.getReplica(replicaName);
|
||||||
if(replica == null){
|
if(replica == null){
|
||||||
throw new SolrException(ErrorCode.BAD_REQUEST, "Invalid shard name : "+shard+" in collection : "+ collectionName);
|
throw new SolrException(ErrorCode.BAD_REQUEST, "Invalid replica : " + replicaName + " in shard/collection : "
|
||||||
|
+ shard + "/"+ collectionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
String baseUrl = replica.getStr(ZkStateReader.BASE_URL_PROP);
|
String baseUrl = replica.getStr(ZkStateReader.BASE_URL_PROP);
|
||||||
|
|
Loading…
Reference in New Issue