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();
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue