kfaraz commented on code in PR #20245:
URL: https://github.com/apache/druid/pull/20245#discussion_r3927815570


##########
server/src/main/java/org/apache/druid/server/coordinator/loading/StrategicSegmentAssigner.java:
##########
@@ -672,6 +679,13 @@ private int updateReplicasInTier(
       cancelOperations(SegmentAction.MOVE_FROM, movingReplicas, segment, 
segmentStatus);
     }
 
+    // If segment is unavailable, prioritize load by changing REPLICATE 
actions to LOAD
+    if (shouldPrioritizeLoadOfUnavailableSegment) {
+      for (ServerHolder server : 
segmentStatus.getServersPerforming(SegmentAction.REPLICATE)) {

Review Comment:
   Moved the load prioritization to after the cancellation of REPLICATE/LOAD 
operations.
   Any remaining REPLICATE operations after the cancellation will get 
prioritized.



-- 
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]

Reply via email to