[
https://issues.apache.org/jira/browse/HDDS-1054?focusedWorklogId=312478&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-312478
]
ASF GitHub Bot logged work on HDDS-1054:
----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Sep/19 02:39
Start Date: 14/Sep/19 02:39
Worklog Time Spent: 10m
Work Description: elek commented on pull request #1277: HDDS-1054. List
Multipart uploads in a bucket
URL: https://github.com/apache/hadoop/pull/1277#discussion_r324409356
##########
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:
Can you please help me to understand how should it be done? What about if an
MPU is finished and deleted? How is it cached? I think I can't return with
(cached values + db values) because the deletions....
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 312478)
Time Spent: 8h (was: 7h 50m)
> List Multipart uploads in a bucket
> ----------------------------------
>
> Key: HDDS-1054
> URL: https://issues.apache.org/jira/browse/HDDS-1054
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: Bharat Viswanadham
> Assignee: Elek, Marton
> Priority: Blocker
> Labels: pull-request-available
> Time Spent: 8h
> Remaining Estimate: 0h
>
> This Jira is to implement in ozone to list of in-progress multipart uploads
> in a bucket.
> [https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadListMPUpload.html]
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]