[ 
https://issues.apache.org/jira/browse/HDFS-2136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065432#comment-13065432
 ] 

Eli Collins commented on HDFS-2136:
-----------------------------------

A technique Todd has used so far for 1073 is to have one of the NN mounts on 
mdadm in "faulty" mode w/ injected read and write failures. Run continuously 
this provides a lot of coverage. I also think mocking out the storage directory 
is worth the effort because there are lots of scenarios this would allow us to 
test, I don't think storage directories are that tightly coupled. An AOP test 
is reasonable to try here as well.

> 1073: Fault injection for StorageDirectory failures during read/write of 
> FSImage/Edits files
> --------------------------------------------------------------------------------------------
>
>                 Key: HDFS-2136
>                 URL: https://issues.apache.org/jira/browse/HDFS-2136
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Matt Foley
>
> Both HDFS-1955 and HDFS-2135 have observed that it is difficult to unit test 
> such failures.  As a result, regression of HDFS-1955 was only found by 
> careful manual review (thanks, atm!).  Since 1073 is making broad changes to 
> the way these files are read and written, and appropriately putting effort 
> into correct error handling, I propose we make also make it possible to 
> auto-test that error handling.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to