lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject lucene-solr:master: SOLR-9784: deprecated uploadconfig
Date Sat, 26 Nov 2016 07:25:00 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 2ec971652 -> 23921064e


SOLR-9784: deprecated uploadconfig


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/23921064
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/23921064
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/23921064

Branch: refs/heads/master
Commit: 23921064e963d7f1f91594725b88f6838a263fae
Parents: 2ec9716
Author: Noble Paul <noble@apache.org>
Authored: Sat Nov 26 12:54:48 2016 +0530
Committer: Noble Paul <noble@apache.org>
Committed: Sat Nov 26 12:54:48 2016 +0530

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/util/SolrCLI.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/23921064/solr/core/src/java/org/apache/solr/util/SolrCLI.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/util/SolrCLI.java b/solr/core/src/java/org/apache/solr/util/SolrCLI.java
index 1975d8e..4979848 100644
--- a/solr/core/src/java/org/apache/solr/util/SolrCLI.java
+++ b/solr/core/src/java/org/apache/solr/util/SolrCLI.java
@@ -91,6 +91,7 @@ import org.apache.solr.client.solrj.impl.HttpClientUtil;
 import org.apache.solr.client.solrj.impl.HttpSolrClient;
 import org.apache.solr.client.solrj.impl.HttpSolrClient.Builder;
 import org.apache.solr.client.solrj.impl.SolrHttpClientBuilder;
+import org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider;
 import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
 import org.apache.solr.client.solrj.response.QueryResponse;
 import org.apache.solr.common.SolrException;
@@ -1514,7 +1515,7 @@ public class SolrCLI {
 
         echo("Uploading " + confPath.toAbsolutePath().toString() +
             " for config " + confname + " to ZooKeeper at " + cloudSolrClient.getZkHost());
-        cloudSolrClient.uploadConfig(confPath, confname);
+        ((ZkClientClusterStateProvider) cloudSolrClient.getClusterStateProvider()).uploadConfig(confPath,
confname);
       }
 
       // since creating a collection is a heavy-weight operation, check for existence first


Mime
View raw message