hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r527056 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/TaskTracker.java
Date Tue, 10 Apr 2007 08:28:52 GMT
Author: tomwhite
Date: Tue Apr 10 01:28:51 2007
New Revision: 527056

URL: http://svn.apache.org/viewvc?view=rev&rev=527056
Log:
HADOOP-1219.  Ignore progress report once a task has reported as 'done'.  Contributed by Devaraj
Das.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=527056&r1=527055&r2=527056
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Apr 10 01:28:51 2007
@@ -134,6 +134,9 @@
 41. HADOOP-1218.  Make synchronization on TaskTracker's RunningJob 
     object consistent.  (Devaraj Das via tomwhite)
 
+42. HADOOP-1219.  Ignore progress report once a task has reported as 
+    'done'.  (Devaraj Das via tomwhite)
+
 
 Release 0.12.3 - 2007-04-06
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java?view=diff&rev=527056&r1=527055&r2=527056
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java Tue Apr 10 01:28:51
2007
@@ -1062,6 +1062,11 @@
                                                 TaskStatus.Phase newPhase,
                                                 Counters counters) 
         {
+            if (this.done) {
+              //make sure we ignore progress messages after a task has 
+              //invoked TaskUmbilicalProtocol.done()
+              return;
+            }
             LOG.info(task.getTaskId()+" "+p+"% "+state);
             this.progress = p;
             this.runstate = TaskStatus.State.RUNNING;



Mime
View raw message