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

Race condition creating S3 buffer directory for NativeS3FileSystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18.1
    • 0.20.0
    • fs/s3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: