Wei-Chiu Chuang created HDDS-7748:
-------------------------------------

             Summary: Rename OMFileRequest.addToOpenFileTable() to avoid misuse
                 Key: HDDS-7748
                 URL: https://issues.apache.org/jira/browse/HDDS-7748
             Project: Apache Ozone
          Issue Type: Improvement
          Components: OM
            Reporter: Wei-Chiu Chuang


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