HDFS-12887. [READ] Allow Datanodes with Provided volumes to start when blocks with the same id exist locally
This commit is contained in:
parent
4531588a94
commit
71ec170107
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue