HDFS-16298. Improve error msg for BlockMissingException (#3615)

Reviewed-by: Hui Fei <ferhui@apache.org>
(cherry picked from commit ea65fc26d8)
This commit is contained in:
litao 2021-11-10 18:16:45 +08:00 committed by Takanobu Asanuma
parent 64cd82e472
commit 899c4802fc
1 changed files with 1 additions and 1 deletions

View File

@ -1106,7 +1106,7 @@ public class DFSInputStream extends FSInputStream
String description = "Could not obtain block: " + blockInfo;
DFSClient.LOG.warn(description + errMsg
+ ". Throwing a BlockMissingException");
throw new BlockMissingException(src, description,
throw new BlockMissingException(src, description + errMsg,
block.getStartOffset());
}