hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r386226 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskInProgress.java
Date Thu, 16 Mar 2006 00:04:38 GMT
Author: cutting
Date: Wed Mar 15 16:04:38 2006
New Revision: 386226

URL: http://svn.apache.org/viewcvs?rev=386226&view=rev
Log:
Fix for HADOOP-82.  Completes count should never be less than zero.  Contributed by Michael
Stack.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskInProgress.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskInProgress.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskInProgress.java?rev=386226&r1=386225&r2=386226&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskInProgress.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskInProgress.java Wed Mar 15 16:04:38
2006
@@ -268,7 +268,9 @@
             status.setRunState(TaskStatus.FAILED);
         }
         this.recentTasks.remove(taskid);
-        this.completes--;
+        if (this.completes > 0) {
+            this.completes--;
+        }
 
         numTaskFailures++;
         if (numTaskFailures >= MAX_TASK_FAILURES) {



Mime
View raw message