[
https://issues.apache.org/jira/browse/SOLR-8461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15074858#comment-15074858
]
Varun Thacker commented on SOLR-8461:
-------------------------------------
How about we add this method to ClusterState.java and make use of this?
{code}
public List<Replica> getActiveReplicas(String collection, String sliceName) {
Slice slice = getSlice(collection, sliceName);
if (slice == null) return null;
List<Replica> activeReplicas = new ArrayList<>();
for (Replica replica : slice.getReplicas()) {
if (liveNodes.contains(replica.getNodeName()) && replica.getState() ==
Replica.State.ACTIVE) {
activeReplicas.add(replica);
}
}
return activeReplicas;
}
{code}
> CloudSolrStream and ParallelStream can choose replicas that are not active
> --------------------------------------------------------------------------
>
> Key: SOLR-8461
> URL: https://issues.apache.org/jira/browse/SOLR-8461
> Project: Solr
> Issue Type: Bug
> Reporter: Joel Bernstein
> Attachments: SOLR-8461.patch, SOLR-8461.patch, SOLR-8461.patch,
> SOLR-8461.patch
>
>
> Currently CloudSolrStream and ParallelStream don't check the state of the
> replicas they route requests to. This can result in replicas that are not
> active receiving request.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]