HADOOP-14204 S3A multipart commit failing,

"UnsupportedOperationException at java.util.Collections$UnmodifiableList.sort".

Contributed by Steve Loughran

(cherry picked from commit 595501c9dd)
This commit is contained in:
Steve Loughran 2017-03-21 13:14:43 +00:00
parent 2c5de0c60e
commit b4481fef41
No known key found for this signature in database
GPG Key ID: 950CC3E032B79CA2
1 changed files with 3 additions and 1 deletions

View File

@ -2400,11 +2400,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)));
}
/**