From 55f4baf3e4638eff2956b643409c7c6f1138aa2c Mon Sep 17 00:00:00 2001 From: qinyuren <1476659627@qq.com> Date: Wed, 23 Mar 2022 14:03:17 +0800 Subject: [PATCH] HDFS-16501. Print the exception when reporting a bad block (#4062) Reviewed-by: tomscut (cherry picked from commit 45ce1cce50c3ff65676d946e96bbc7846ad3131a) --- .../org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java index 0367b4a7aa..2c666a3831 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java @@ -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); } }