hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14757) S3AFileSystem.innerRename() to size metadatastore lists better
Date Fri, 01 Sep 2017 14:29:01 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-14757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Steve Loughran updated HADOOP-14757:
    Parent Issue: HADOOP-14825  (was: HADOOP-13345)

> S3AFileSystem.innerRename() to size metadatastore lists better
> --------------------------------------------------------------
>                 Key: HADOOP-14757
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14757
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.0.0-beta1
>            Reporter: Steve Loughran
>            Priority: Minor
>             Fix For: 3.1.0
> 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
> # for a single file copy, sizes == 1
> # 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message