hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077716 - /hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
Date Fri, 04 Mar 2011 04:47:34 GMT
Author: omalley
Date: Fri Mar  4 04:47:34 2011
New Revision: 1077716

URL: http://svn.apache.org/viewvc?rev=1077716&view=rev
Log:
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

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java?rev=1077716&r1=1077715&r2=1077716&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
Fri Mar  4 04:47:34 2011
@@ -388,7 +388,6 @@ public class TaskTracker implements MRCo
       synchronized (rJob) {
         rJob.tasks.add(tip);
       }
-      runningJobs.notify(); //notify the fetcher thread
       return rJob;
     }
   }
@@ -964,6 +963,9 @@ public class TaskTracker implements MRCo
         rjob.localized = true;
       }
     }
+    synchronized (runningJobs) {
+      runningJobs.notify(); //notify the fetcher thread
+    }
     return rjob;
   }
 



Mime
View raw message