kfaraz commented on code in PR #13197:
URL: https://github.com/apache/druid/pull/13197#discussion_r1231749300
##########
server/src/main/java/org/apache/druid/server/coordinator/SegmentReplicantLookup.java:
##########
@@ -125,49 +117,85 @@ public int getMovingReplicas(SegmentId segmentId, String
tier)
* Number of replicas of the segment which are safely loaded on the given
tier
* and are not being dropped.
*/
- public int getLoadedReplicas(SegmentId segmentId, String tier)
+ public int getLoadedNotDroppingReplicas(SegmentId segmentId, String tier)
+ {
+ ReplicaCount count = replicaCounts.get(segmentId, tier);
+ return (count == null) ? 0 : count.loadedNotDropping();
+ }
Review Comment:
Yes, that would be neater, thanks!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]