Author: llu Date: Fri Oct 11 08:27:32 2013 New Revision: 1531224 URL: http://svn.apache.org/r1531224 Log: HDFS-5276. Remove volatile from LightWeightHashSet. (Junping Du via llu)
Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1531224&r1=1531223&r2=1531224&view=diff ============================================================================== --- hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original) +++ hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Fri Oct 11 08:27:32 2013 @@ -14,6 +14,8 @@ Release 2.3.0 - UNRELEASED IMPROVEMENTS + HDFS-5276. Remove volatile from LightWeightHashSet. (Junping Du via llu) + HDFS-4657. Limit the number of blocks logged by the NN after a block report to a configurable value. (Aaron T. Myers via Colin Patrick McCabe) Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java?rev=1531224&r1=1531223&r2=1531224&view=diff ============================================================================== --- hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java (original) +++ hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java Fri Oct 11 08:27:32 2013 @@ -88,7 +88,7 @@ public class LightWeightHashSet<T> imple * * @see ConcurrentModificationException */ - protected volatile int modification = 0; + protected int modification = 0; private float maxLoadFactor; private float minLoadFactor; @@ -634,4 +634,4 @@ public class LightWeightHashSet<T> imple public boolean retainAll(Collection<?> c) { throw new UnsupportedOperationException("retainAll is not supported."); } -} \ No newline at end of file +}