bharatviswa504 commented on a change in pull request #1277: HDDS-1054. List
Multipart uploads in a bucket
URL: https://github.com/apache/hadoop/pull/1277#discussion_r320505479
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
##########
@@ -826,6 +828,28 @@ private VolumeList getVolumesByUser(String userNameKey)
return count;
}
+ @Override
+ public List<String> getMultipartUploadKeys(
+ String volumeName, String bucketName, String prefix) throws IOException {
+ List<String> response = new ArrayList<>();
+ TableIterator<String, ? extends KeyValue<String, OmMultipartKeyInfo>>
+ iterator = getMultipartInfoTable().iterator();
+
+ String prefixKey =
+ OmMultipartUpload.getDbKey(volumeName, bucketName, prefix);
+ iterator.seek(prefixKey);
+
+ while (iterator.hasNext()) {
Review comment:
Here, we need to consider table cache also now HA/Non-HA code path is merged
(HDDS-1909)
----------------------------------------------------------------
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]