[ 
https://issues.apache.org/jira/browse/SOLR-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18014364#comment-18014364
 ] 

David Smiley commented on SOLR-17560:
-------------------------------------

It's available.  I didn't start.  It's not possible to *assign* an issue to you 
in the tool but that means nothing.

I'm looking at it's only caller -- HttpSolrCall.getCoreByCollection.  It could 
just produce a new filtered list (of leaders) from the whole list.

> DocCollection, don't need getLeaderReplicas(nodeName)
> -----------------------------------------------------
>
>                 Key: SOLR-17560
>                 URL: https://issues.apache.org/jira/browse/SOLR-17560
>             Project: Solr
>          Issue Type: Task
>          Components: SolrCloud
>            Reporter: David Smiley
>            Priority: Minor
>              Labels: newdev
>             Fix For: main (10.0)
>
>
> Claim: DocCollection.getLeaderReplicas(nodeName) isn't needed.
> Goal:  reduce complexity/bookkeeping and weight of DocCollection
> In non-test code, it's only needed by 
> org.apache.solr.servlet.HttpSolrCall#getCoreByCollection for an indexing 
> request.  This could be modified to randomly iterate all replicas and filter 
> leaders afterwards instead of before.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to