You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2012/12/05 16:02:58 UTC

[jira] [Commented] (HADOOP-9119) Add test to FileSystemContractBaseTest to verify integrity of overwritten files

    [ 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