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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.1, 2.0.2-alpha
    • 3.0.0-alpha1
    • fs/s3
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: