Hadoop Common
  1. Hadoop Common
  2. HADOOP-9261

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 2.0.2-alpha
    • Fix Version/s: 3.0.0
    • 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Steve Loughran
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development