[ 
https://issues.apache.org/jira/browse/SOLR-12595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16558264#comment-16558264
 ] 

Vilius Pranckaitis commented on SOLR-12595:
-------------------------------------------

There's a workaround, but you need to call at least one {{@Deprecated}} method: 
you could construct {{ZkClientClusterStateProvider}} yourself and pass it using 
[{{withClusterStateProvider()}}|https://github.com/apache/lucene-solr/blob/d87ea6b1ccd28e0dd8e30565fe95b2e0a31f82e8/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java#L1556-L1559]
 method.

I'm volunteering to implement this new constructor.

> CloudSolrClient.Builder should accept a zkHost connection string
> ----------------------------------------------------------------
>
>                 Key: SOLR-12595
>                 URL: https://issues.apache.org/jira/browse/SOLR-12595
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Vilius Pranckaitis
>            Priority: Minor
>
> SOLR-11629 improved {{CloudSolrClient.Builder}} workflow by adding two new 
> constructors:
> {code:java}
> 1.   public Builder(List<String> solrUrls) {
> 2.   public Builder(List<String> zkHosts, Optional<String> zkChroot) {
> {code}
> It is not unusual to format ZooKeeper connection details as a single string 
> (e.g. {{zk1:2181,zk2:2181/some_chroot}}). However, these new constructors 
> make it difficult to use such connection strings.
> It would be fairly simple to add a third constructor which would accept a 
> connection string:
> {code:java}
> 3.   public Builder(String zkHost) {
> {code}
> {{CloudSolrClient.Builder}} uses ZooKeeper details to construct a 
> {{ZkClientClusterStateProvider}}, which [already supports ZK connection 
> strings|https://github.com/apache/lucene-solr/blob/d87ea6b1ccd28e0dd8e30565fe95b2e0a31f82e8/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ZkClientClusterStateProvider.java#L57-L59].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to