peterxcli commented on code in PR #8848:
URL: https://github.com/apache/ozone/pull/8848#discussion_r2245592666
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java:
##########
@@ -220,16 +224,45 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager, Execut
omBucketInfo = getBucketInfo(omMetadataManager, volumeName, bucketName);
+ // This map should contain maximum of two entries
+ // 1. Overwritten part
+ // 2. Uncommitted pseudo part key
+ Map<String, RepeatedOmKeyInfo> keyVersionsToDeleteMap = null;
Review Comment:
I feel like the `keyVersionsToDeleteMap` can be assign to a new empty hash
map so the later additional branching can be removed (also in the
`S3MultipartUploadCommitPartResponse`)
--
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]