attilapiros commented on a change in pull request #32180:
URL: https://github.com/apache/spark/pull/32180#discussion_r613765906



##########
File path: 
core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala
##########
@@ -551,8 +551,10 @@ final class ShuffleBlockFetcherIterator(
     // Send out initial requests for blocks, up to our maxBytesInFlight
     fetchUpToMaxBytes()
 
-    val numFetches = remoteRequests.size - fetchRequests.size
-    logInfo(s"Started $numFetches remote fetches in 
${Utils.getUsedTimeNs(startTimeNs)}")
+    val numDeferredRequest = deferredFetchRequests.values.map(_.size).sum
+    val numFetches = remoteRequests.size - fetchRequests.size - 
numDeferredRequest
+    logInfo(s"Started $numFetches remote fetches in 
${Utils.getUsedTimeNs(startTimeNs)}" +
+      s"${if (numDeferredRequest > 0 ) s", deferred $numDeferredRequest 
requests" else "" }")

Review comment:
       ```suggestion
         (if (numDeferredRequest > 0 ) s", deferred $numDeferredRequest 
requests" else ""))
   ```




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

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