hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r526669 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/TaskTracker.java
Date Mon, 09 Apr 2007 07:52:07 GMT
Author: tomwhite
Date: Mon Apr  9 00:52:06 2007
New Revision: 526669

URL: http://svn.apache.org/viewvc?view=rev&rev=526669
Log:
HADOOP-1218.  Make synchronization on TaskTracker's RunningJob object consistent.   Contributed
by Devaraj Das.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=526669&r1=526668&r2=526669
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Apr  9 00:52:06 2007
@@ -131,6 +131,9 @@
     contains(), and isOnSameRack() in NetworkTopology.  
     (Hairong Kuang via tomwhite)
 
+41. HADOOP-1218.  Make synchronization on TaskTracker's RunningJob 
+    object consistent.  (Devaraj Das via tomwhite)
+
 
 Release 0.12.3 - 2007-04-06
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java?view=diff&rev=526669&r1=526668&r2=526669
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/TaskTracker.java Mon Apr  9 00:52:06
2007
@@ -219,7 +219,9 @@
         } else {
           rJob = runningJobs.get(jobId);
         }
-        rJob.tasks.add(tip);
+        synchronized (rJob) {
+          rJob.tasks.add(tip);
+        }
         return rJob;
       }
     }



Mime
View raw message