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

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 3.0.0-beta1
    • None
    • fs/s3
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: