[
https://issues.apache.org/jira/browse/HDFS-9297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tony Wu updated HDFS-9297:
--------------------------
Attachment: HDFS-9297.001.patch
In this patch:
* Use {{corruptBlockOnDataNodesByDeletingBlockFile()}} to corrupt a block by
removing all block files.
* Removed the test's own implementation of the same function.
> Update TestBlockMissingException to use
> corruptBlockOnDataNodesByDeletingBlockFile()
> ------------------------------------------------------------------------------------
>
> Key: HDFS-9297
> URL: https://issues.apache.org/jira/browse/HDFS-9297
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: HDFS, test
> Affects Versions: 2.7.1
> Reporter: Tony Wu
> Assignee: Tony Wu
> Priority: Trivial
> Attachments: HDFS-9297.001.patch
>
>
> TestBlockMissingException uses its own function to corrupt a block by
> deleting all its block files. HDFS-7235 introduced a helper function
> {{corruptBlockOnDataNodesByDeletingBlockFile()}} that does exactly the same
> thing. We can update this test to use the helper function.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)