[
https://issues.apache.org/jira/browse/SOLR-18380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109456#comment-18109456
]
ASF subversion and git services commented on SOLR-18380:
--------------------------------------------------------
Commit f336f6f3f311200e801ae3d6f71033d0073027e0 in solr's branch
refs/heads/branch_10x from Serhiy Bzhezytskyy
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=f336f6f3f31 ]
SOLR-18380: remove CloudSolrClient.connect(), ClusterStateProvider.connect()
(#4762)
And avoid using the deprecated ZK-specific CSC Builder constructor.
(cherry picked from commit 0c77e420e8ff627f7093ad64fa30312949eecc45)
> Remove CloudSolrClient connect()/legacy Builder constructor
> -----------------------------------------------------------
>
> Key: SOLR-18380
> URL: https://issues.apache.org/jira/browse/SOLR-18380
> Project: Solr
> Issue Type: Sub-task
> Environment:
> `StreamFactory.withCollectionZkHost`/`withDefaultZkHost`/`getDefaultZkHost`/`getCollectionZkHost`
> and `SolrClientCache.getCloudSolrClient(String)` have been deprecated since
> 10.1 in favor of the `CloudSolrClientConnection`-based methods
> (`withCollectionUseThisConnection`, `withDefaultSolrConnection`,
> `getCloudSolrClient(CloudSolrClient.CloudSolrClientConnection)`). Public
> `solrj-streaming` API used by external streaming-expression code.
> Reporter: Eric Pugh
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 4.5h
> Remaining Estimate: 0h
>
> `CloudSolrClient.connect()`/`connect(long, TimeUnit)` and the matching
> `ClusterStateProvider.connect()` (10.0) are deprecated in favor of
> `getLiveNodes()`. `CloudSolrClient.Builder(List<String>, Optional<String>)`
> is deprecated in favor of a connection-string constructor.
> `CloudSolrClient.getClusterState()` is also deprecated (10.1) but its own
> javadoc says "the future of ClusterState isn't clear" — recommend leaving
> that one out until a direction is picked, and scoping this ticket to just the
> `connect()`/`Builder` cleanup.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]