hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [3/3] hadoop git commit: HADOOP-14204 S3A multipart commit failing, "UnsupportedOperationException at java.util.Collections$UnmodifiableList.sort".
Date Tue, 21 Mar 2017 13:19:19 GMT
HADOOP-14204 S3A multipart commit failing,
"UnsupportedOperationException at java.util.Collections$UnmodifiableList.sort".

Contributed by Steve Loughran

(cherry picked from commit 595501c9ddacd5fdb740ac1bf9bfeb0ffbbd6c0e)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2841666f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2841666f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2841666f

Branch: refs/heads/trunk
Commit: 2841666f1f2dec96761a0aa34a69cbb20297aa14
Parents: 3b908f7
Author: Steve Loughran <stevel@apache.org>
Authored: Tue Mar 21 13:15:15 2017 +0000
Committer: Steve Loughran <stevel@apache.org>
Committed: Tue Mar 21 13:15:15 2017 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2841666f/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
index e0ff5a8..6c89412 100644
--- a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
+++ b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
@@ -2403,11 +2403,13 @@ public class S3AFileSystem extends FileSystem {
           "No partitions have been uploaded");
       LOG.debug("Completing multipart upload {} with {} parts",
           uploadId, partETags.size());
+      // a copy of the list is required, so that the AWS SDK doesn't
+      // attempt to sort an unmodifiable list.
       return s3.completeMultipartUpload(
           new CompleteMultipartUploadRequest(bucket,
               key,
               uploadId,
-              partETags));
+              new ArrayList<>(partETags)));
     }
 
     /**


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


Mime
View raw message