Sfoglia il codice sorgente

HADOOP-912. Fix a bug in TaskTracker.isIdle() that was sporadically causing unit test failures. Contributed by Arun.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@499140 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 anni fa
parent
commit
ee130b7aa2
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/mapred/TaskTracker.java

+ 3 - 0
CHANGES.txt

@@ -57,6 +57,9 @@ Trunk (unreleased changes)
 17. HADOOP-901.  Add support for recursive renaming to the S3 filesystem.
     (Tom White via cutting)
 
+18. HADOOP-912.  Fix a bug in TaskTracker.isIdle() that was
+    sporadically causing unit test failures.  (Arun C Murthy via cutting)
+
 
 Release 0.10.1 - 2007-01-10
 

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

@@ -1475,7 +1475,7 @@ public class TaskTracker
      * @return has this task tracker finished and cleaned up all of its tasks?
      */
     public synchronized boolean isIdle() {
-      return tasks.isEmpty();
+      return tasks.isEmpty() && tasksToCleanup.isEmpty();
     }
     
     /**