HADOOP-14204 S3A multipart commit failing,
"UnsupportedOperationException at java.util.Collections$UnmodifiableList.sort". Contributed by Steve Loughran (cherry picked from commit 595501c9ddacd5fdb740ac1bf9bfeb0ffbbd6c0e)
This commit is contained in:
parent
3b908f71c5
commit
2841666f1f
@ -2403,11 +2403,13 @@ CompleteMultipartUploadResult completeMultipartUpload(String uploadId,
|
|||||||
"No partitions have been uploaded");
|
"No partitions have been uploaded");
|
||||||
LOG.debug("Completing multipart upload {} with {} parts",
|
LOG.debug("Completing multipart upload {} with {} parts",
|
||||||
uploadId, partETags.size());
|
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(
|
return s3.completeMultipartUpload(
|
||||||
new CompleteMultipartUploadRequest(bucket,
|
new CompleteMultipartUploadRequest(bucket,
|
||||||
key,
|
key,
|
||||||
uploadId,
|
uploadId,
|
||||||
partETags));
|
new ArrayList<>(partETags)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user