[ 
https://issues.apache.org/jira/browse/HADOOP-13600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16165695#comment-16165695
 ] 

ASF GitHub Bot commented on HADOOP-13600:
-----------------------------------------

Github user sahilTakiar commented on a diff in the pull request:

    https://github.com/apache/hadoop/pull/157#discussion_r138791767
  
    --- Diff: 
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/CopyContext.java 
---
    @@ -0,0 +1,34 @@
    +package org.apache.hadoop.fs.s3a;
    +
    +import com.amazonaws.services.s3.transfer.Copy;
    +
    +class CopyContext {
    +
    +  private final Copy copy;
    +  private final String srcKey;
    +  private final String dstKey;
    +  private final long length;
    +
    +  CopyContext(Copy copy, String srcKey, String dstKey, long length) {
    +    this.copy = copy;
    +    this.srcKey = srcKey;
    +    this.dstKey = dstKey;
    +    this.length = length;
    +  }
    +
    +  Copy getCopy() {
    +    return copy;
    +  }
    +
    +  String getSrcKey() {
    +    return srcKey;
    +  }
    +
    +  String getDstKey() {
    --- End diff --
    
    Fixed


> S3a rename() to copy files in a directory in parallel
> -----------------------------------------------------
>
>                 Key: HADOOP-13600
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13600
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 2.7.3
>            Reporter: Steve Loughran
>            Assignee: Sahil Takiar
>         Attachments: HADOOP-13600.001.patch
>
>
> Currently a directory rename does a one-by-one copy, making the request 
> O(files * data). If the copy operations were launched in parallel, the 
> duration of the copy may be reducable to the duration of the longest copy. 
> For a directory with many files, this will be significant



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to