HDFS-16501. Print the exception when reporting a bad block (#4062)

Reviewed-by: tomscut <litao@bigo.sg>
This commit is contained in:
qinyuren 2022-03-23 14:03:17 +08:00 committed by GitHub
parent ef8bff0df9
commit 45ce1cce50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,7 +293,7 @@ public void handle(ExtendedBlock block, IOException e) {
volume, block); volume, block);
return; return;
} }
LOG.warn("Reporting bad {} on {}", block, volume); LOG.warn("Reporting bad {} on {}", block, volume, e);
scanner.datanode.handleBadBlock(block, e, true); scanner.datanode.handleBadBlock(block, e, true);
} }
} }