瀏覽代碼

HADOOP-638. Fix an unsynchronized access to TaskTracker's internal state. Contributed by Nigel.

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

+ 3 - 0
CHANGES.txt

@@ -69,6 +69,9 @@ Trunk (unreleased changes)
 18. HADOOP-642.  Change IPC client to specify an explicit connect
     timeout.  (Konstantin Shvachko via cutting)
 
+19. HADOOP-638.  Fix an unsynchronized access to TaskTracker's
+    internal state.  (Nigel Daley via cutting)
+
 
 Release 0.7.2 - 2006-10-18
 

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

@@ -446,7 +446,7 @@ public class TaskTracker
             killOverflowingTasks();
             
             //we've cleaned up, resume normal operation
-            if (!acceptNewTasks && tasks.isEmpty()) {
+            if (!acceptNewTasks && isIdle()) {
                 acceptNewTasks=true;
             }
           } catch (InterruptedException ie) {