[
https://issues.apache.org/jira/browse/HDFS-10625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rushabh S Shah updated HDFS-10625:
----------------------------------
Attachment: HDFS-10625-1.patch
Thanks [~yzhangal] for the review.
Added a new patch to address your comments.
I ran {{TestBlockScanner#testCorruptBlockHandling}} to confirm the exception
message:
{noformat}
2016-07-15 13:50:35,445
[VolumeScannerThread(/Users/rushabhs/hadoop/Hadoop/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/data/data1)]
INFO datanode.TestBlockScanner (TestBlockScanner.java:handle(325)) - handling
block BP-449958863-xxxxx-1468608632636:blk_1073741828_1004 (exception
org.apache.hadoop.fs.ChecksumException: Checksum failed at 0 for replica:
FinalizedReplica, blk_1073741828_1004, FINALIZED
getNumBytes() = 4
getBytesOnDisk() = 4
getVisibleLength()= 4
getVolume() =
/Users/rushabhs/hadoop/Hadoop/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/data/data1/current
getBlockFile() =
/Users/rushabhs/hadoop/Hadoop/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/data/data1/current/BP-449958863-xxxxx-1468608632636/current/finalized/subdir0/subdir0/blk_1073741828)
{noformat}
Please review the revised patch.
> VolumeScanner to report why a block is found bad
> -------------------------------------------------
>
> Key: HDFS-10625
> URL: https://issues.apache.org/jira/browse/HDFS-10625
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: datanode, hdfs
> Reporter: Yongjun Zhang
> Assignee: Rushabh S Shah
> Labels: supportability
> Attachments: HDFS-10625-1.patch, HDFS-10625.patch
>
>
> VolumeScanner may report:
> {code}
> WARN org.apache.hadoop.hdfs.server.datanode.VolumeScanner: Reporting bad
> blk_1170125248_96458336 on /d/dfs/dn
> {code}
> It would be helpful to report the reason why the block is bad, especially
> when the block is corrupt, where is the first corrupted chunk in the block.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]