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

Add create() contract test that verifies ancestor dir creation

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha4
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: fs
    • Labels:
      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.002.patch
          2 kB
          Sean Mackrory
        2. HADOOP-14506.001.patch
          2 kB
          Sean Mackrory

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: