Skip to content

Commit

Permalink
HDFS-16501. Print the exception when reporting a bad block (apache#4062)
Browse files Browse the repository at this point in the history
Reviewed-by: tomscut <litao@bigo.sg>
  • Loading branch information
liubingxing authored Mar 23, 2022
1 parent ef8bff0 commit 45ce1cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public void handle(ExtendedBlock block, IOException e) {
volume, block);
return;
}
LOG.warn("Reporting bad {} on {}", block, volume);
LOG.warn("Reporting bad {} on {}", block, volume, e);
scanner.datanode.handleBadBlock(block, e, true);
}
}
Expand Down

0 comments on commit 45ce1cc

Please sign in to comment.