HDFS-12887. [READ] Allow Datanodes with Provided volumes to start when blocks with the same id exist locally

This commit is contained in:
Virajith Jalaparti 2017-12-06 09:42:31 -08:00 committed by Chris Douglas
parent 4531588a94
commit 71ec170107
1 changed files with 2 additions and 2 deletions

View File

@ -208,8 +208,8 @@ class ProvidedVolumeImpl extends FsVolumeImpl {
incrNumBlocks(); incrNumBlocks();
incDfsUsed(region.getBlock().getNumBytes()); incDfsUsed(region.getBlock().getNumBytes());
} else { } else {
throw new IOException("A block with id " + newReplica.getBlockId() LOG.warn("A block with id " + newReplica.getBlockId()
+ " already exists in the volumeMap"); + " exists locally. Skipping PROVIDED replica");
} }
} }
} }