bharatviswa504 commented on a change in pull request #428: HDDS-2868. Add
ObjectID and UpdateID to OMKeyInfo.
URL: https://github.com/apache/hadoop-ozone/pull/428#discussion_r365093741
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadAbortRequest.java
##########
@@ -120,6 +124,21 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
multipartKeyInfo = omMetadataManager
.getMultipartInfoTable().get(multipartKey);
+ // Set updateID to current transactionLogIndex for all parts
+ TreeMap<Integer, PartKeyInfo> partKeyInfoMap = multipartKeyInfo
+ .getPartKeyInfoMap();
+ for (Map.Entry<Integer, PartKeyInfo> partKeyInfoEntry :
+ partKeyInfoMap.entrySet()) {
+ PartKeyInfo partKeyInfo = partKeyInfoEntry.getValue();
+ OmKeyInfo currentKeyPartInfo = OmKeyInfo.getFromProtobuf(
Review comment:
Not understood the reason of setting updateID here, as below we are setting
Optional.absent(), so it means entry is deleted from DB.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]