lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbern...@apache.org
Subject svn commit: r1593175 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/solrj/ solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
Date Thu, 08 May 2014 03:24:06 GMT
Author: jbernste
Date: Thu May  8 03:24:06 2014
New Revision: 1593175

URL: http://svn.apache.org/r1593175
Log:
SOLR-6035: CloudSolrServer directUpdate routing should use getCoreUrl

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/solrj/   (props changed)
    lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java?rev=1593175&r1=1593174&r2=1593175&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
(original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
Thu May  8 03:24:06 2014
@@ -415,7 +415,7 @@ public class CloudSolrServer extends Sol
         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 Sol
         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);
         }
       }



Mime
View raw message