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

Steve Loughran commented on HADOOP-9119:
----------------------------------------

I propose new tests that write to the same file with: less data, more data, the 
same amount of data -and a different set of data in each. The byte-by-byte 
verification will pick up any situation where the old data is somehow mixed 
with the new data.
                
> Add test to FileSystemContractBaseTest to verify integrity of overwritten 
> files
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-9119
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9119
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Steve Loughran
>            Priority: Minor
>
> The test {{FileSystemContractBaseTest.testOverwrite()}} is meant to verify 
> that overwrites work -but it only overwrites a zero byte file with some data 
> and only checks for length. This can hide problems where there overwrite was 
> somehow corrupted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to