Skip to content

Commit 66be0a7

Browse files
liubingxingtasanuma
authored andcommitted
HDFS-16501. Print the exception when reporting a bad block (#4062)
Reviewed-by: tomscut <[email protected]> (cherry picked from commit 45ce1cc)
1 parent e13408d commit 66be0a7

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public void handle(ExtendedBlock block, IOException e) {
289289
volume, block);
290290
return;
291291
}
292-
LOG.warn("Reporting bad {} on {}", block, volume);
292+
LOG.warn("Reporting bad {} on {}", block, volume, e);
293293
scanner.datanode.handleBadBlock(block, e, true);
294294
}
295295
}

0 commit comments

Comments
 (0)