diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/ProvidedVolumeImpl.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/ProvidedVolumeImpl.java index f65fbbc6436..59ec100527a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/ProvidedVolumeImpl.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/ProvidedVolumeImpl.java @@ -208,8 +208,8 @@ class ProvidedVolumeImpl extends FsVolumeImpl { incrNumBlocks(); incDfsUsed(region.getBlock().getNumBytes()); } else { - throw new IOException("A block with id " + newReplica.getBlockId() - + " already exists in the volumeMap"); + LOG.warn("A block with id " + newReplica.getBlockId() + + " exists locally. Skipping PROVIDED replica"); } } }