[
https://issues.apache.org/jira/browse/HDDS-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bharat Viswanadham resolved HDDS-2131.
--------------------------------------
Fix Version/s: 0.5.0
Resolution: Fixed
> Optimize replication type and creation time calculation in S3 MPU list call
> ---------------------------------------------------------------------------
>
> Key: HDDS-2131
> URL: https://issues.apache.org/jira/browse/HDDS-2131
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Reporter: Marton Elek
> Assignee: Siddharth Wagle
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Based on the review from [~bharatviswa]:
> {code}
>
> hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
> metadataManager.getOpenKeyTable();
> OmKeyInfo omKeyInfo =
> openKeyTable.get(upload.getDbKey());
> {code}
> {quote}Here we are reading openKeyTable only for getting creation time. If we
> can have this information in omMultipartKeyInfo, we could avoid DB calls for
> openKeyTable.
> To do this, We can set creationTime in OmMultipartKeyInfo during
> initiateMultipartUpload . In this way, we can get all the required
> information from the MultipartKeyInfo table.
> And also StorageClass is missing from the returned OmMultipartUpload, as
> listMultipartUploads shows StorageClass information. For this, if we can
> return replicationType and depending on this value, we can set StorageClass
> in the listMultipartUploads Response.
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]