hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1140908 - /hadoop/common/branches/MR-279/mapreduce/mr-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskImpl.java
Date Tue, 28 Jun 2011 23:40:47 GMT
Author: llu
Date: Tue Jun 28 23:40:46 2011
New Revision: 1140908

URL: http://svn.apache.org/viewvc?rev=1140908&view=rev
Log:
Fix double counting of task completions. (llu)

Modified:
    hadoop/common/branches/MR-279/mapreduce/mr-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskImpl.java

Modified: hadoop/common/branches/MR-279/mapreduce/mr-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskImpl.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/MR-279/mapreduce/mr-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskImpl.java?rev=1140908&r1=1140907&r2=1140908&view=diff
==============================================================================
--- hadoop/common/branches/MR-279/mapreduce/mr-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskImpl.java
(original)
+++ hadoop/common/branches/MR-279/mapreduce/mr-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskImpl.java
Tue Jun 28 23:40:46 2011
@@ -432,17 +432,6 @@ public abstract class TaskImpl implement
     if (getState() == TaskState.RUNNING) {
       metrics.endRunningTask(this);
     }
-    switch (finalState) {
-      case FAILED:
-        metrics.failedTask(this);
-        break;
-      case KILLED:
-        metrics.killedTask(this);
-        break;
-      case SUCCEEDED:
-        metrics.completedTask(this);
-        break;
-    }
     return finalState;
   }
 



Mime
View raw message