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

S3n filesystem can move a directory under itself -and so lose data

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 2.0.2-alpha
    • Fix Version/s: 3.0.0-alpha1
    • Component/s: fs/s3
    • Labels:
      None
    • Environment:

      Testing against S3 bucket stored on US West (Read after Write consistency; eventual for read-after-delete or write-after-write)

      Description

      The S3N filesystem rename() doesn't make sure that the destination directory is not a child or other descendant of the source directory. The files are copied to the new destination, then the source directory is recursively deleted, so losing data.

        Attachments

        1. HADOOP-9261-2.patch
          5 kB
          Steve Loughran
        2. HADOOP-9261.patch
          2 kB
          Steve Loughran

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: