You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Vilius Pranckaitis (JIRA)" <ji...@apache.org> on 2018/07/26 12:41:00 UTC
[jira] [Created] (SOLR-12595) CloudSolrClient.Builder should accept
a zkHost connection string
Vilius Pranckaitis created SOLR-12595:
-----------------------------------------
Summary: 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
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org