mirror of https://github.com/apache/lucene.git
SOLR-9520: Kerberos delegation support in SolrJ
This commit is contained in:
parent
d44d07966a
commit
658cd155e1
|
@ -386,6 +386,7 @@ public class CloudSolrClient extends SolrClient {
|
||||||
LBHttpSolrClient.Builder lbHttpSolrClientBuilder,
|
LBHttpSolrClient.Builder lbHttpSolrClientBuilder,
|
||||||
boolean updatesToLeaders,
|
boolean updatesToLeaders,
|
||||||
boolean directUpdatesToLeadersOnly) {
|
boolean directUpdatesToLeadersOnly) {
|
||||||
|
this.zkHost = buildZkHostString(zkHosts, chroot);
|
||||||
this.clientIsInternal = httpClient == null;
|
this.clientIsInternal = httpClient == null;
|
||||||
this.shutdownLBHttpSolrServer = lbSolrClient == null;
|
this.shutdownLBHttpSolrServer = lbSolrClient == null;
|
||||||
if(lbHttpSolrClientBuilder != null) lbSolrClient = lbHttpSolrClientBuilder.build();
|
if(lbHttpSolrClientBuilder != null) lbSolrClient = lbHttpSolrClientBuilder.build();
|
||||||
|
@ -393,7 +394,6 @@ public class CloudSolrClient extends SolrClient {
|
||||||
this.myClient = httpClient == null ? HttpClientUtil.createClient(null) : httpClient;
|
this.myClient = httpClient == null ? HttpClientUtil.createClient(null) : httpClient;
|
||||||
if (lbSolrClient == null) lbSolrClient = createLBHttpSolrClient(myClient);
|
if (lbSolrClient == null) lbSolrClient = createLBHttpSolrClient(myClient);
|
||||||
this.lbClient = lbSolrClient;
|
this.lbClient = lbSolrClient;
|
||||||
this.zkHost = buildZkHostString(zkHosts, chroot);
|
|
||||||
this.updatesToLeaders = updatesToLeaders;
|
this.updatesToLeaders = updatesToLeaders;
|
||||||
this.directUpdatesToLeadersOnly = directUpdatesToLeadersOnly;
|
this.directUpdatesToLeadersOnly = directUpdatesToLeadersOnly;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue