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

Reviewed-by: Hui Fei <ferhui@apache.org>
This commit is contained in:
litao 2021-11-10 18:16:45 +08:00 committed by GitHub
parent b307f18a58
commit ea65fc26d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1003,7 +1003,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());
}