瀏覽代碼

Fix HADOOP-19. If a child process hangs after it has reported completion its output should not be lost.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@399074 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 年之前
父節點
當前提交
b04af0d5be
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 4 0
      CHANGES.txt
  2. 2 1
      src/java/org/apache/hadoop/mapred/TaskTracker.java

+ 4 - 0
CHANGES.txt

@@ -155,6 +155,10 @@ Trunk (unreleased)
     RPC asking for a new task to run, the job tracker does not think
     that it is actually running the task returned.  (omalley via cutting)
 
+41. HADOOP-190.  If a child process hangs after it has reported
+    completion, its output should not be lost.  (Stack via cutting)
+
+
 Release 0.1.1 - 2006-04-08
 
  1. Added CHANGES.txt, logging all significant changes to Hadoop.  (cutting)

+ 2 - 1
src/java/org/apache/hadoop/mapred/TaskTracker.java

@@ -573,7 +573,8 @@ public class TaskTracker implements MRConstants, TaskUmbilicalProtocol, MapOutpu
                   }
                   runstate = TaskStatus.FAILED;
               }
-              needCleanup = wasKilled || runstate == TaskStatus.FAILED;
+              
+              needCleanup = runstate == TaskStatus.FAILED;
             }
 
             //