mirror of https://github.com/apache/lucene.git
SOLR-9784: deprecated uploadconfig
This commit is contained in:
parent
2ec9716520
commit
23921064e9
|
@ -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;
|
||||||
import org.apache.solr.client.solrj.impl.HttpSolrClient.Builder;
|
import org.apache.solr.client.solrj.impl.HttpSolrClient.Builder;
|
||||||
import org.apache.solr.client.solrj.impl.SolrHttpClientBuilder;
|
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.request.ContentStreamUpdateRequest;
|
||||||
import org.apache.solr.client.solrj.response.QueryResponse;
|
import org.apache.solr.client.solrj.response.QueryResponse;
|
||||||
import org.apache.solr.common.SolrException;
|
import org.apache.solr.common.SolrException;
|
||||||
|
@ -1514,7 +1515,7 @@ public class SolrCLI {
|
||||||
|
|
||||||
echo("Uploading " + confPath.toAbsolutePath().toString() +
|
echo("Uploading " + confPath.toAbsolutePath().toString() +
|
||||||
" for config " + confname + " to ZooKeeper at " + cloudSolrClient.getZkHost());
|
" 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
|
// since creating a collection is a heavy-weight operation, check for existence first
|
||||||
|
|
Loading…
Reference in New Issue