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 d9071dd444e..e0f780917b1 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 @@ -1777,11 +1777,11 @@ class FsDatasetImpl implements FsDatasetSpi { case FINALIZED: case RBW: case RWR: - builders.get(b.getVolume().getStorageID()).add(b); + builders.get(volStorageID).add(b); break; case RUR: ReplicaInfo orig = b.getOriginalReplica(); - builders.get(b.getVolume().getStorageID()).add(orig); + builders.get(volStorageID).add(orig); break; case TEMPORARY: break;