Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12595

CloudSolrClient.Builder should accept a zkHost connection string

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.4
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      SOLR-11629 improved CloudSolrClient.Builder workflow by adding two new constructors:

      1.   public Builder(List<String> solrUrls) {
      2.   public Builder(List<String> zkHosts, Optional<String> zkChroot) {
      

      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:

      3.   public Builder(String zkHost) {
      

      CloudSolrClient.Builder uses ZooKeeper details to construct a ZkClientClusterStateProvider, which already supports ZK connection strings.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vpranckaitis Vilius Pranckaitis
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m