HDFS-16298. Improve error msg for BlockMissingException (#3615)
Reviewed-by: Hui Fei <ferhui@apache.org> (cherry picked from commit ea65fc26d80db478f7e49749065c69da7e241bf0)
This commit is contained in:
parent
64cd82e472
commit
899c4802fc
@ -1106,7 +1106,7 @@ private LocatedBlock refetchLocations(LocatedBlock block,
|
|||||||
String description = "Could not obtain block: " + blockInfo;
|
String description = "Could not obtain block: " + blockInfo;
|
||||||
DFSClient.LOG.warn(description + errMsg
|
DFSClient.LOG.warn(description + errMsg
|
||||||
+ ". Throwing a BlockMissingException");
|
+ ". Throwing a BlockMissingException");
|
||||||
throw new BlockMissingException(src, description,
|
throw new BlockMissingException(src, description + errMsg,
|
||||||
block.getStartOffset());
|
block.getStartOffset());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user