Samrat002 commented on code in PR #27970:
URL: https://github.com/apache/flink/pull/27970#discussion_r3110600877


##########
flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3BulkCopyHelper.java:
##########
@@ -113,12 +152,18 @@ public void copyFiles(
                 }
 
                 if (copyFutures.size() >= maxConcurrentCopies || i == 
requests.size() - 1) {
+                    batchNumber++;
+                    LOG.debug(
+                            "Waiting for batch {}/{} ({} files)",
+                            batchNumber,
+                            totalBatches,
+                            copyFutures.size());
                     waitForCopies(copyFutures);
                     copyFutures.clear();
                 }
             }
 
-            LOG.info("Completed bulk copy of {} files", requests.size());
+            LOG.info("Completed bulk copy of {} files", totalFiles);

Review Comment:
   Good question. 
   Each CopyRequest maps to exactly one file by contract of 
     
https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/core/fs/PathsCopyingFileSystem.java#L46-L55.
 
   it's a single getSource() → getDestination() pair with a getSize() for that 
one file. So requests.size() and "total files" are always identical, which is 
why totalFiles = requests.size() is a direct assignment. 
   The variable was renamed purely for readability in the log statements that 
follow. 
   IMO, no additional logging needed since they represent the same value. 



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

Reply via email to