abstractdog commented on code in PR #326:
URL: https://github.com/apache/tez/pull/326#discussion_r1894647233


##########
tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/shuffle/impl/ShuffleManager.java:
##########
@@ -583,8 +583,15 @@ Fetcher constructFetcherForHost(InputHost inputHost, 
Configuration conf) {
       } else {
           alreadyCompleted = completedInputSet.get(input.getInputIdentifier());
       }
-      // Avoid adding attempts which have already completed or have been 
marked as OBSOLETE
-      if (alreadyCompleted || obsoletedInputs.contains(input)) {
+
+      // Avoid adding attempts which have already completed
+      if (alreadyCompleted) {
+        inputIter.remove();
+        continue;
+      }
+      // Avoid adding attempts which have been marked as OBSOLETE
+      if (isObsoleteInputAttemptIdentifier(input)) {
+        LOG.info("Skipping obsolete input: " + input);

Review Comment:
   the original behavior didn't log when we skip an obsolete input, is this an 
intentional change?
   
   I can see that we still don't log anything in ShuffleScheduler when the same 
happens, so this is more like a LOG.debug, or back to
   ```
   if (alreadyCompleted || isObsoleteInputAttemptIdentifier(input)) {
   ```
   which one do you prefer?



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