HDFS-8862. BlockManager#excessReplicateMap should use a HashMap. (yliu)

This commit is contained in:
yliu 2015-08-18 09:23:06 +08:00
parent 51a00964da
commit 71566e2382
2 changed files with 3 additions and 2 deletions

View File

@ -820,6 +820,8 @@ Release 2.8.0 - UNRELEASED
HDFS-8845. DiskChecker should not traverse the entire tree (Chang Li via HDFS-8845. DiskChecker should not traverse the entire tree (Chang Li via
Colin P. McCabe) Colin P. McCabe)
HDFS-8862. BlockManager#excessReplicateMap should use a HashMap. (yliu)
BUG FIXES BUG FIXES
HDFS-7501. TransactionsSinceLastCheckpoint can be negative on SBNs. HDFS-7501. TransactionsSinceLastCheckpoint can be negative on SBNs.

View File

@ -33,7 +33,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Queue; import java.util.Queue;
import java.util.Set; import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet; import java.util.TreeSet;
import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicLong;
@ -204,7 +203,7 @@ public class BlockManager implements BlockStatsMXBean {
* DataNode. We'll eventually remove these extras. * DataNode. We'll eventually remove these extras.
*/ */
public final Map<String, LightWeightLinkedSet<Block>> excessReplicateMap = public final Map<String, LightWeightLinkedSet<Block>> excessReplicateMap =
new TreeMap<String, LightWeightLinkedSet<Block>>(); new HashMap<>();
/** /**
* Store set of Blocks that need to be replicated 1 or more times. * Store set of Blocks that need to be replicated 1 or more times.