diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java index 34552d29411..3bdb1d7158a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java @@ -21,9 +21,9 @@ package org.apache.hadoop.hdfs.server.datanode; import java.io.DataOutputStream; import java.io.FileNotFoundException; import java.io.IOException; +import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashSet; -import java.util.LinkedList; import java.util.List; import java.util.concurrent.TimeUnit; @@ -125,7 +125,7 @@ public class VolumeScanner extends Thread { * Each block pool has its own BlockIterator. */ private final List blockIters = - new LinkedList(); + new ArrayList(); /** * Blocks which are suspect.