[
https://issues.apache.org/jira/browse/HDFS-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Shvachko updated HDFS-614:
-------------------------------------
Attachment: TestDNBlockScanner.patch
Here is the patch that does it.
I also added assertions to make sure that blocks are really corrupted. This
makes the test fail rather than loop indefinitely in case the block was not
corrupted.
> TestDatanodeBlockScanner should data-node directories directly from
> MiniDFSCluster
> ----------------------------------------------------------------------------------
>
> Key: HDFS-614
> URL: https://issues.apache.org/jira/browse/HDFS-614
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 0.21.0
> Reporter: Konstantin Shvachko
> Fix For: 0.21.0
>
> Attachments: TestDNBlockScanner.patch
>
>
> TestDatanodeBlockScanner relies on that data-node directories are listed in
> {{test.build.data}}, which is not true if the test run from eclipse. It shold
> get the directories directly from {{MiniDFSCluster}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.