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:
Joel Bernstein 2014-05-08 03:13:25 +00:00
parent abf7baa25c
commit 50c69361e2
1 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ public class CloudSolrServer extends SolrServer {
return null; return null;
} }
ZkCoreNodeProps zkProps = new ZkCoreNodeProps(leader); ZkCoreNodeProps zkProps = new ZkCoreNodeProps(leader);
String url = zkProps.getBaseUrl() + "/" + col.getName(); String url = zkProps.getCoreUrl();
urls.add(url); urls.add(url);
Collection<Replica> replicas = slice.getReplicas(); Collection<Replica> replicas = slice.getReplicas();
Iterator<Replica> replicaIterator = replicas.iterator(); Iterator<Replica> replicaIterator = replicas.iterator();
@ -424,7 +424,7 @@ public class CloudSolrServer extends SolrServer {
if (!replica.getNodeName().equals(leader.getNodeName()) && if (!replica.getNodeName().equals(leader.getNodeName()) &&
!replica.getName().equals(leader.getName())) { !replica.getName().equals(leader.getName())) {
ZkCoreNodeProps zkProps1 = new ZkCoreNodeProps(replica); ZkCoreNodeProps zkProps1 = new ZkCoreNodeProps(replica);
String url1 = zkProps1.getBaseUrl() + "/" + col.getName(); String url1 = zkProps1.getCoreUrl();
urls.add(url1); urls.add(url1);
} }
} }