Sfoglia il codice sorgente

HADOOP-3403. Fixes a problem in the JobTracker to do with handling of lost tasktrackers. Contributed by Arun Murthy.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@658994 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 17 anni fa
parent
commit
70ae0edd5d
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/java/org/apache/hadoop/mapred/JobTracker.java

+ 3 - 0
CHANGES.txt

@@ -308,6 +308,9 @@ Trunk (unreleased changes)
     accommodate collectors that don't support long values. (lohit vijayarenu
     via cdouglas)
 
+    HADOOP-3403. Fixes a problem in the JobTracker to do with handling of lost
+    tasktrackers. (Arun Murthy via ddas)
+
 Release 0.17.0 - 2008-05-18
 
   INCOMPATIBLE CHANGES

+ 2 - 2
src/java/org/apache/hadoop/mapred/JobTracker.java

@@ -296,9 +296,9 @@ public class JobTracker implements MRConstants, InterTrackerProtocol, JobSubmiss
                   // tracker has already been destroyed.
                   if (newProfile != null) {
                     if (now - newProfile.getLastSeen() > TASKTRACKER_EXPIRY_INTERVAL) {
-                      // Remove completely
-                      updateTaskTrackerStatus(trackerName, null);
+                      // Remove completely after marking the tasks as 'KILLED'
                       lostTaskTracker(leastRecent.getTrackerName());
+                      updateTaskTrackerStatus(trackerName, null);
                     } else {
                       // Update time by inserting latest profile
                       trackerExpiryQueue.add(newProfile);