hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravigumm...@apache.org
Subject svn commit: r1245325 - /hadoop/common/branches/branch-0.23.1/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
Date Fri, 17 Feb 2012 06:37:57 GMT
Author: ravigummadi
Date: Fri Feb 17 06:37:57 2012
New Revision: 1245325

URL: http://svn.apache.org/viewvc?rev=1245325&view=rev
Log:
MAPREDUCE-3757. [Rumen] Fixed Rumen Folder to adjust shuffleFinished and sortFinished times
when needed.

Modified:
    hadoop/common/branches/branch-0.23.1/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java

Modified: hadoop/common/branches/branch-0.23.1/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23.1/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java?rev=1245325&r1=1245324&r2=1245325&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.23.1/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
(original)
+++ hadoop/common/branches/branch-0.23.1/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
Fri Feb 17 06:37:57 2012
@@ -275,6 +275,12 @@ public class LoggedTaskAttempt implement
   void adjustTimes(long adjustment) {
     startTime += adjustment;
     finishTime += adjustment;
+
+    // For reduce attempts, adjust the different phases' finish times also 
+    if (sortFinished >= 0) {
+      shuffleFinished += adjustment;
+      sortFinished += adjustment;
+    }
   }
 
   public long getShuffleFinished() {



Mime
View raw message