abhishekrb19 commented on code in PR #16691:
URL: https://github.com/apache/druid/pull/16691#discussion_r1669529313


##########
server/src/main/java/org/apache/druid/server/coordinator/loading/HttpLoadQueuePeon.java:
##########
@@ -542,6 +557,24 @@ private void onRequestCompleted(SegmentHolder holder, 
RequestStatus status)
     executeCallbacks(holder, status == RequestStatus.SUCCESS);
   }
 
+  @GuardedBy("lock")
+  private void updateLoadProgress(
+      List<DataSegmentChangeResponse> responses,
+      long requestCompleteTimeMillis
+  )
+  {
+    final long loadSize =
+        responses.stream()
+                 .filter(response -> response.getStatus().getState() == 
SegmentChangeStatus.State.SUCCESS)
+                 .map(DataSegmentChangeResponse::getRequest)
+                 .filter(req -> req instanceof SegmentChangeRequestLoad)

Review Comment:
   Makes sense, thanks for the explanation 



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