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

Add create() contract test that verifies ancestor dir creation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha4
    • 2.9.0, 3.0.0-alpha4
    • fs
    • None

    Description

      The semantics of FileSystem#create() appear to include implicit creation of any parent or ancestor directories in the Path being created, unlike Posix filesystems, which expect the parent directory to already exist.

      S3AFileSystem does implicitly create ancestor directories. It does not currently enforce that any ancestors are directories (HADOOP-13221).

      Deliverable for this JIRA is just a test case added to AbstractContractCreateTest which verifies that missing ancestors are created by create().

      Pulling this test dev work out into separate jira from HADOOP-14457.

      Attachments

        1. HADOOP-14506.001.patch
          2 kB
          Sean Mackrory
        2. HADOOP-14506.002.patch
          2 kB
          Sean Mackrory

        Issue Links

          Activity

            People

              mackrorysd Sean Mackrory
              fabbri Aaron Fabbri
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: