HDFS-17073. Enhance the warning message output for BlockGroupNonStripedChecksumComputer#compute" (#5817). Contributed by Haiyang Hu.
Reviewed-by: Xing Lin <linxingnku@gmail.com> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
e3683a954f
commit
3f983e49e0
@ -493,7 +493,9 @@ final class BlockChecksumHelper {
|
||||
checksumBlock(block, idx, liveBlkInfo.getToken(),
|
||||
liveBlkInfo.getDn());
|
||||
} catch (IOException ioe) {
|
||||
LOG.warn("Exception while reading checksum", ioe);
|
||||
String msg = String.format("Exception while reading checksum for block %s at index " +
|
||||
"%d in blockGroup %s", block, idx, blockGroup);
|
||||
LOG.warn(msg, ioe);
|
||||
// reconstruct block and calculate checksum for the failed node
|
||||
recalculateChecksum(idx, block.getNumBytes());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user