hadoop-common-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1077742&view=rev
Log:
commit 5a21aa1efa89e13707871b32e1dee1328d8496b1
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Fri Oct 29 10:37:47 2010 -0700

    . Makes the jobArchives map synchronized.
    
    +++ b/YAHOO-CHANGES.txt
    +    . Makes the jobArchives map synchronized. (ddas)
    +

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

Modified: hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java?rev=1077742&r1=1077741&r2=1077742&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
Fri Mar  4 04:50:33 2011
@@ -22,6 +22,7 @@ import java.io.IOException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.text.DateFormat;
+import java.util.Collections;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -69,7 +70,8 @@ public class TrackerDistributedCacheMana
   private TreeMap<String, CacheStatus> cachedArchives = 
     new TreeMap<String, CacheStatus>();
   private Map<JobID, TaskDistributedCacheManager> jobArchives =
-    new HashMap<JobID, TaskDistributedCacheManager>();
+    Collections.synchronizedMap(
+        new HashMap<JobID, TaskDistributedCacheManager>());
   private final TaskController taskController;
   private static final FsPermission PUBLIC_CACHE_OBJECT_PERM =
     FsPermission.createImmutable((short) 0755);



Mime
View raw message