Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9119

Add test to FileSystemContractBaseTest to verify integrity of overwritten files

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.3-alpha
    • fs, test
    • None
    • Reviewed
    • Hide
      Patches adds more tests to verify overwritten and more complex operations -write-delete-overwrite. By using differently sized datasets and different data inside, these tests verify that the overwrite really did take place. While HDFS meets all these requirements directly, eventually consistent object stores may not -hence these tests.
      Show
      Patches adds more tests to verify overwritten and more complex operations -write-delete-overwrite. By using differently sized datasets and different data inside, these tests verify that the overwrite really did take place. While HDFS meets all these requirements directly, eventually consistent object stores may not -hence these tests.

    Description

      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.

      Attachments

        1. HADOOP-9119.patch
          7 kB
          Steve Loughran
        2. HADOOP-9119-2.patch
          8 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: