spacemonkd commented on code in PR #9886:
URL: https://github.com/apache/ozone/pull/9886#discussion_r2936910191
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java:
##########
@@ -1520,7 +1529,24 @@ public List<ExpiredMultipartUploadsBucket>
getExpiredMultipartUploads(
expiredMPUs.get(mapKey)
.addMultipartUploads(builder.setName(dbMultipartInfoKey)
.build());
- numParts += omMultipartKeyInfo.getPartKeyInfoMap().size();
+ if (omMultipartKeyInfo.getSchemaVersion() == 0) {
+ numParts += omMultipartKeyInfo.getPartKeyInfoMap().size();
+ } else {
+ OmMultipartPartKey prefix =
+
OmMultipartPartKey.prefix(expiredMultipartUpload.getUploadId());
+ try (TableIterator<OmMultipartPartKey, ? extends
KeyValue<OmMultipartPartKey, OmMultipartPartInfo>>
+ partIterator = getMultipartPartTable().iterator(prefix)) {
+ while (partIterator.hasNext()) {
+ KeyValue<OmMultipartPartKey, OmMultipartPartInfo> partEntry =
+ partIterator.next();
+ if (!expiredMultipartUpload.getUploadId().equals(
+ partEntry.getKey().getUploadId())) {
+ break;
+ }
+ numParts++;
+ }
+ }
+ }
Review Comment:
Addressed this in the latest commit.
I have commented out this part and added a TODO in case I forget about the
changes 😅
Will just uncomment the section after the actual request and response
modifications are done
--
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]