You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yiqun Lin (JIRA)" <ji...@apache.org> on 2016/07/14 12:22:20 UTC
[jira] [Created] (HDFS-10626) VolumeScanner prints incorrect
IOException in reportBadBlocks operation
Yiqun Lin created HDFS-10626:
--------------------------------
Summary: VolumeScanner prints incorrect IOException in reportBadBlocks operation
Key: HDFS-10626
URL: https://issues.apache.org/jira/browse/HDFS-10626
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Yiqun Lin
Assignee: Yiqun Lin
VolumeScanner throws incorrect IOException in {{datanode.reportBadBlocks}}. The related codes:
{code}
public void handle(ExtendedBlock block, IOException e) {
FsVolumeSpi volume = scanner.volume;
...
try {
scanner.datanode.reportBadBlocks(block, volume);
} catch (IOException ie) {
// This is bad, but not bad enough to shut down the scanner.
LOG.warn("Cannot report bad " + block.getBlockId(), e);
}
}
{code}
The IOException that printed in the log should be {{ie}} rather than {{e}} which was passed in method {{handle(ExtendedBlock block, IOException e)}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org