diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index eef9628ceb..8fcd16ed3c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -15,6 +15,8 @@ Trunk (Unreleased) IMPROVEMENTS + HDFS-5276. Remove volatile from LightWeightHashSet. (Junping Du via llu) + HDFS-4665. Move TestNetworkTopologyWithNodeGroup to common. (Junping Du via llu) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java index 5fa50003e1..c3931e0950 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/LightWeightHashSet.java @@ -87,7 +87,7 @@ public String toString() { * * @see ConcurrentModificationException */ - protected volatile int modification = 0; + protected int modification = 0; private float maxLoadFactor; private float minLoadFactor;