[ 
https://issues.apache.org/jira/browse/HDDS-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-7748:
---------------------------------
    Labels: pull-request-available  (was: )

> Rename OMFileRequest.addToOpenFileTable() to avoid misuse
> ---------------------------------------------------------
>
>                 Key: HDDS-7748
>                 URL: https://issues.apache.org/jira/browse/HDDS-7748
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: OM
>            Reporter: Wei-Chiu Chuang
>            Assignee: Tsz-wo Sze
>            Priority: Major
>              Labels: pull-request-available
>
> This is a badly named API.
> OMFileRequest.addToOpenFileTable() is specifically designed for S3 multipart 
> upload, 
> {code}
> /**
>  * Adding multipart omKeyInfo to open file table.
>  *
>  *@paramomMetadataMgrOM Metadata Manager
>  *@parambatchOpbatch of db operations
>  *@paramomFileInfoomKeyInfo
>  *@paramuploadIDuploadID
>  *@returnmultipartFileKey
>  *@throwsIOException DB failure
>  */
> public static String addToOpenFileTable(OMMetadataManager omMetadataMgr,
>     BatchOperation batchOp, OmKeyInfo omFileInfo, String uploadID,
>     long volumeId, long bucketId) throws IOException {
> {code}
> Adding to open file table for non-multipart upload and multipart upload are 
> different. Please rename this API to avoid misuse in the future.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to