[
https://issues.apache.org/jira/browse/HADOOP-14204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933072#comment-15933072
]
Steve Loughran commented on HADOOP-14204:
-----------------------------------------
Issue is
# AWS SDK assumes passed in {{List<PartETag>}} can be sorted.
# We are generating it with {{Futures.allAsList(partETagsFutures).get();}},
which inside goes {{return new ListFuture<V>(ImmutableList.copyOf(futures),
true, MoreExecutors.sameThreadExecutor());}}. That is: returns an immutable
list.
Fix is what the later SDKs do internally: copy the list elements into a new
ArrayList.
> S3A multipart commit failing, "UnsupportedOperationException at
> java.util.Collections$UnmodifiableList.sort"
> ------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-14204
> URL: https://issues.apache.org/jira/browse/HADOOP-14204
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/s3
> Affects Versions: 2.8.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Critical
>
> Stack trace seen trying to commit a multipart upload, as the EMR code (which
> takes a {{List<String> etags}} is trying to sort that list directly, which it
> can't do if the list doesn't want to be sorted.
> later versions of the SDK clone the list before sorting.
> We need to make sure that the list passed in can be sorted.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]