szetszwo commented on code in PR #4572:
URL: https://github.com/apache/ozone/pull/4572#discussion_r1194453216
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmMultipartKeyInfo.java:
##########
@@ -109,15 +189,18 @@ public long getCreationTime() {
}
public TreeMap<Integer, PartKeyInfo> getPartKeyInfoMap() {
- return partKeyInfoList;
+ TreeMap<Integer, PartKeyInfo> treeMap = new TreeMap<>();
+ partKeyInfoMap.forEach(
+ partKeyInfo -> treeMap.put(partKeyInfo.getPartNumber(), partKeyInfo));
Review Comment:
> The whole multiupload process will only call getPartKeyInfoMap once (in
the S3MultipartUploadCompleteRequest) ...
@xichen01 , This is the behavior today. Someone may call getPartKeyInfoMap
and misuse it in the future. Please update the corresponding code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]