From 658cd155e1bc7ae3ae1dde4cf911eb3df774a47c Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 4 Oct 2016 01:29:32 +0530 Subject: [PATCH] SOLR-9520: Kerberos delegation support in SolrJ --- .../java/org/apache/solr/client/solrj/impl/CloudSolrClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java index 88da5f3d16f..99d6a6dd037 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java @@ -386,6 +386,7 @@ public class CloudSolrClient extends SolrClient { LBHttpSolrClient.Builder lbHttpSolrClientBuilder, boolean updatesToLeaders, boolean directUpdatesToLeadersOnly) { + this.zkHost = buildZkHostString(zkHosts, chroot); this.clientIsInternal = httpClient == null; this.shutdownLBHttpSolrServer = lbSolrClient == null; if(lbHttpSolrClientBuilder != null) lbSolrClient = lbHttpSolrClientBuilder.build(); @@ -393,7 +394,6 @@ public class CloudSolrClient extends SolrClient { this.myClient = httpClient == null ? HttpClientUtil.createClient(null) : httpClient; if (lbSolrClient == null) lbSolrClient = createLBHttpSolrClient(myClient); this.lbClient = lbSolrClient; - this.zkHost = buildZkHostString(zkHosts, chroot); this.updatesToLeaders = updatesToLeaders; this.directUpdatesToLeadersOnly = directUpdatesToLeadersOnly; }