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

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

@Matt, #2 means the code contains hooks for generating a fault/behavior and the 
test code triggers the hooks. See the test he referenced for an example. 

@Cos, maybe you and Matt could sync up and you could write an AOP test for a 
case Matt is thinking of to compare against.  

> 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