[ https://issues.apache.org/jira/browse/SOLR-17561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17904560#comment-17904560 ]
ASF subversion and git services commented on SOLR-17561: -------------------------------------------------------- Commit 2d3a8d9954a45c0eb1bbaa77b29f51ce314c1849 in solr's branch refs/heads/main from David Smiley [ https://gitbox.apache.org/repos/asf?p=solr.git;h=2d3a8d9954a ] SOLR-17561: Deprecations in ClusterState, DocCollection, Replica (#2898) Non-essential methods that will go away in Solr 10. Might add additional methods later to address some conveniences these offer. > DocCollection, remove getReplicas() and getReplicas(EnumSet) > ------------------------------------------------------------ > > Key: SOLR-17561 > URL: https://issues.apache.org/jira/browse/SOLR-17561 > Project: Solr > Issue Type: Task > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrCloud, SolrJ > Reporter: David Smiley > Priority: Major > Labels: newdev, pull-request-available > Time Spent: 20m > Remaining Estimate: 0h > > {{DocCollection.getReplicas()}} and {{getReplicas(EnumSet<Replica.Type)}} > return new collections, which is counterintuitive based on their name. For > many callers, this is a needless extra cost too. They should be removed in > 10, deprecated in 9. > Instead, consider adding replicaStream(). Some callers that are more > performance sensitive might simply want to double-for-loop over Slice then > Replicas. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org