Skip to content

Commit 9aacbf0

Browse files
author
liubingxing
committed
HDFS-16501. Print the exception when reporting a bad block
1 parent ed65aa2 commit 9aacbf0

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
@@ -293,7 +293,7 @@ public void handle(ExtendedBlock block, IOException e) {
293293
volume, block);
294294
return;
295295
}
296-
LOG.warn("Reporting bad {} on {}", block, volume);
296+
LOG.warn("Reporting bad {} on {}", block, volume, e);
297297
scanner.datanode.handleBadBlock(block, e, true);
298298
}
299299
}

0 commit comments

Comments
 (0)