[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arun C Murthy updated MAPREDUCE-1143:
-------------------------------------

    Status: Open  (was: Patch Available)

The trunk and ydist patch differ in one significant manner:

{noformat}
+    if(wasAttemptRunning) {
+      if(!tip.isJobCleanupTask() && !tip.isJobSetupTask()) {
+        if(tip.isMapTask()) {
+          runningMapTasks -= 1;
+        } else {
+          runningReduceTasks -= 1;
+        }
+      }
+    }
{noformat}

{noformat}
     boolean isComplete = tip.isComplete();
+    if (wasAttemptRunning) {
+      if (!tip.isJobCleanupTask() && !tip.isJobSetupTask()) {
+        if (tip.isMapTask()) {
+          runningMapTasks -= 1;
+          metrics.failedMap(taskid);
+        } else {
+          runningReduceTasks -= 1;
+          metrics.failedReduce(taskid);
+        }
+      }
+    }
{noformat}

----

Minor nits:
# Spacing: call to JIP.failedTask needs a space for the new parameter
# The above block of code could use a comment 
# I'd appreciate if the following change was minimized by adding the new 
parameter to a new line by itself without changing the others:

{noformat}
-  private void failedTask(TaskInProgress tip, TaskAttemptID taskid, 
-                          TaskStatus status, 
-                          TaskTracker taskTracker,
-                          boolean wasRunning, boolean wasComplete) {
+  private void failedTask(
+    TaskInProgress tip, TaskAttemptID taskid, TaskStatus status,
+    TaskTracker taskTracker, boolean wasRunning, boolean wasComplete,
+    boolean wasAttemptRunning) {
{noformat}


> runningMapTasks counter is not properly decremented in case of failed Tasks.
> ----------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1143
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1143
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: rahul k singh
>            Priority: Blocker
>         Attachments: MAPRED-1143-1.patch, MAPRED-1143-2.patch, 
> MAPRED-1143-2.patch, MAPRED-1143-3.patch, MAPRED-1143-4.patch, 
> MAPRED-1143-5.patch.txt, MAPRED-1143-ydist-1.patch, 
> MAPRED-1143-ydist-2.patch, MAPRED-1143-ydist-3.patch, 
> MAPRED-1143-ydist-4.patch, MAPRED-1143-ydist-5.patch, 
> MAPRED-1143-ydist-6.patch, MAPRED-1143-ydist-7.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to