HDFS-7936. Erasure coding: resolving conflicts in the branch when merging trunk changes (this commit is for HDFS-8035). Contributed by Zhe Zhang
This commit is contained in:
parent
e54a74b566
commit
c243319eab
@ -3584,13 +3584,12 @@ public boolean checkBlocksProperlyReplicated(
|
||||
String src, BlockInfo[] blocks) {
|
||||
for (BlockInfo b: blocks) {
|
||||
if (!b.isComplete()) {
|
||||
final BlockInfoContiguousUnderConstruction uc =
|
||||
(BlockInfoContiguousUnderConstruction)b;
|
||||
final int numNodes = b.numNodes();
|
||||
LOG.info("BLOCK* " + b + " is not COMPLETE (ucState = "
|
||||
+ uc.getBlockUCState() + ", replication# = " + numNodes
|
||||
+ (numNodes < minReplication ? " < ": " >= ")
|
||||
+ " minimum = " + minReplication + ") in file " + src);
|
||||
final int min = getMinStorageNum(b);
|
||||
final BlockUCState state = b.getBlockUCState();
|
||||
LOG.info("BLOCK* " + b + " is not COMPLETE (ucState = " + state
|
||||
+ ", replication# = " + numNodes + (numNodes < min ? " < " : " >= ")
|
||||
+ " minimum = " + min + ") in file " + src);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user