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

Race condition creating S3 buffer directory for NativeS3FileSystem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.18.1
    • Fix Version/s: 0.20.0
    • Component/s: fs/s3
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The buffer directory is checked for existence, then created if it doesn't exist. But the create can fail if the another process creates it in between. We can fix this by checking for existence again if the create fails. I've seen "Cannot create S3 buffer directory" occur, and this race is the most plausible explanation.

        Attachments

        1. hadoop-s3n-tmpdir.patch
          0.7 kB
          David Phillips
        2. hadoop-s3n-tmpdir.patch
          0.6 kB
          David Phillips

          Activity

            People

            • Assignee:
              electrum David Phillips
              Reporter:
              electrum David Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: