Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15619 Über-JIRA: S3Guard Phase IV: Hadoop 3.3 features
  3. HADOOP-14757

S3AFileSystem.innerRename() to size metadatastore lists better

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:
      None

      Description

      In S3AFileSystem.innerRename(), various ArrayLists are created to track paths to update; these are created with the default size. It could/should be possible to allocate better, so avoid expensive array growth & copy operations while iterating through the list of entries.

      1. for a single file copy, sizes == 1
      2. for a recursive copy, the outcome of the first real LIST will either provide the actual size, or, if the list == the max response, a very large minimum size.

      For #2, we'd need to get the hint of iterable length rather than just iterate through...some interface {IterableLength.expectedMinimumSize() could do that.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stevel@apache.org Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: