You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Lei (Eddy) Xu (JIRA)" <ji...@apache.org> on 2015/10/01 23:27:26 UTC

[jira] [Updated] (HDFS-9188) Make block corruption related tests FsDataset-agnostic.

     [ https://issues.apache.org/jira/browse/HDFS-9188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lei (Eddy) Xu updated HDFS-9188:
--------------------------------
    Attachment: HDFS-9188.000.patch

The patch:
* Provides a Dataset-special TestUtils interface. 
* Provides a {{ReplicaToCorrupt}} interface to abstract out the block implementation (e.g., using File).

> Make block corruption related tests FsDataset-agnostic. 
> --------------------------------------------------------
>
>                 Key: HDFS-9188
>                 URL: https://issues.apache.org/jira/browse/HDFS-9188
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: HDFS, test
>    Affects Versions: 2.7.1
>            Reporter: Lei (Eddy) Xu
>            Assignee: Lei (Eddy) Xu
>         Attachments: HDFS-9188.000.patch
>
>
> Currently, HDFS does block corruption tests by directly accessing the files stored on the storage directories, which assumes {{FsDatasetImpl}} is the dataset implementation. However, with works like OZone (HDFS-7240) and HDFS-8679, there will be different FsDataset implementations. 
> So we need a general way to run whitebox tests like corrupting blocks and crc files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)