mirror of https://github.com/apache/lucene.git
SOLR-6035: CloudSolrServer directUpdate routing should use getCoreUrl
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1593174 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
abf7baa25c
commit
50c69361e2
|
@ -415,7 +415,7 @@ public class CloudSolrServer extends SolrServer {
|
|||
return null;
|
||||
}
|
||||
ZkCoreNodeProps zkProps = new ZkCoreNodeProps(leader);
|
||||
String url = zkProps.getBaseUrl() + "/" + col.getName();
|
||||
String url = zkProps.getCoreUrl();
|
||||
urls.add(url);
|
||||
Collection<Replica> replicas = slice.getReplicas();
|
||||
Iterator<Replica> replicaIterator = replicas.iterator();
|
||||
|
@ -424,7 +424,7 @@ public class CloudSolrServer extends SolrServer {
|
|||
if (!replica.getNodeName().equals(leader.getNodeName()) &&
|
||||
!replica.getName().equals(leader.getName())) {
|
||||
ZkCoreNodeProps zkProps1 = new ZkCoreNodeProps(replica);
|
||||
String url1 = zkProps1.getBaseUrl() + "/" + col.getName();
|
||||
String url1 = zkProps1.getCoreUrl();
|
||||
urls.add(url1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue