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

abfs and s3a disk buffer factories to use UUIDs for file prefixes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.3.2
    • None
    • fs/azure, fs/s3
    • None

    Description

      the disk buffers created in s3a and abfs output streams use a simple String.format("datablock-%04d-", index) pattern for the prefix for File.tmpFile

      this means there will be contention for filenames across streams, especially across processes.

      if each stream had a uuid prefix there'd be no contention. That'd change the API though. Alternatively: each disk block factory has the uuid, and the index is simply total number blocks created.

      Attachments

        Activity

          People

            mehakmeetSingh Mehakmeet Singh
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: