ソースを参照

commit 0e001a363091acb0f0bebd603ae5c454c9fe7911
Author: Devaraj Das <ddas@yahoo-inc.com>
Date: Mon Sep 20 10:03:23 2010 -0700

Fixed an issue to do with sending notifications at the right time to the Fether thread


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077716 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年 前
コミット
db14a3c801
1 ファイル変更3 行追加1 行削除
  1. 3 1
      src/mapred/org/apache/hadoop/mapred/TaskTracker.java

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

@@ -388,7 +388,6 @@ public class TaskTracker implements MRConstants, TaskUmbilicalProtocol,
       synchronized (rJob) {
         rJob.tasks.add(tip);
       }
-      runningJobs.notify(); //notify the fetcher thread
       return rJob;
     }
   }
@@ -964,6 +963,9 @@ public class TaskTracker implements MRConstants, TaskUmbilicalProtocol,
         rjob.localized = true;
       }
     }
+    synchronized (runningJobs) {
+      runningJobs.notify(); //notify the fetcher thread
+    }
     return rjob;
   }