Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: fs/s3
    • Labels:
      None
    • Target Version/s:

      Description

      if you try to delete the root directory on s3a, you get politely but firmly told you can't

      2016-03-30 12:01:44,924 INFO  s3a.S3AFileSystem (S3AFileSystem.java:delete(638)) - s3a cannot delete the root directory
      

      The semantics of rm -rf "/" are defined, they are "delete everything underneath, while preserving the root dir itself".

      1. s3a needs to support this.
      2. this skipped through the FS contract tests in AbstractContractRootDirectoryTest; the option of whether deleting / works or not should be made configurable.

        Attachments

        1. HADOOP-12977-001.patch
          7 kB
          Steve Loughran
        2. HADOOP-12977-002.patch
          18 kB
          Steve Loughran
        3. HADOOP-12977-branch-2-002.patch
          18 kB
          Steve Loughran
        4. HADOOP-12977-branch-2-002.patch
          18 kB
          Steve Loughran
        5. HADOOP-12977-branch-2-003.patch
          18 kB
          Steve Loughran
        6. HADOOP-12977-branch-2-004.patch
          18 kB
          Steve Loughran
        7. HADOOP-12977-branch-2-005.patch
          18 kB
          Steve Loughran
        8. HADOOP-12977-branch-2-006.patch
          18 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: