diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java index 16df7091da7..41c41e6ed6b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java @@ -315,7 +315,7 @@ class FsDatasetImpl implements FsDatasetSpi { deletingBlock = new HashMap>(); for (int idx = 0; idx < storage.getNumStorageDirs(); idx++) { - addVolume(dataLocations, storage.getStorageDir(idx)); + addVolume(storage.getStorageDir(idx)); } setupAsyncLazyPersistThreads(); @@ -413,8 +413,7 @@ class FsDatasetImpl implements FsDatasetSpi { } } - private void addVolume(Collection dataLocations, - Storage.StorageDirectory sd) throws IOException { + private void addVolume(Storage.StorageDirectory sd) throws IOException { final StorageLocation storageLocation = sd.getStorageLocation(); // If IOException raises from FsVolumeImpl() or getVolumeMap(), there is