Eric Pugh created SOLR-18710:
--------------------------------
Summary: solr/core: replace CloudSolrClient.getClusterState() in
org.apache.solr.cloud tests
Key: SOLR-18710
URL: https://issues.apache.org/jira/browse/SOLR-18710
Project: Solr
Issue Type: Sub-task
Components: Build
Reporter: Eric Pugh
111 call sites in {{solr/core/src/test/org/apache/solr/cloud}} (excluding
{{cloud.api}}).
The method is deprecated because one implementation does a remote fetch of the
whole cluster state on every call. Replace each call with the narrowest
{{getClusterStateProvider()}} lookup it needs (e.g. a single collection),
rather than {{getClusterStateProvider().getClusterState()}}, which only hides
the warning.
*Before starting:* the deprecation comment says the future of {{ClusterState}}
is unclear and it might be un-deprecated (SOLR-17604, still open). Confirm the
direction on SOLR-17604 / dev@ first.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]