pvcnt commented on code in PR #2039: URL: https://github.com/apache/solr/pull/2039#discussion_r1410874536
########## solr/solrj/src/java/org/apache/solr/common/cloud/ReplicaCount.java: ########## @@ -100,6 +166,10 @@ public int total() { return countByType.values().stream().reduce(Integer::sum).orElse(0); } + public int count(EnumSet<Replica.Type> replicaTypes) { Review Comment: I added `hasLeaderReplica`, since there are already similar methods in this class. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org