XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • OM

    Description

      This is a badly named API.

      OMFileRequest.addToOpenFileTable() is specifically designed for S3 multipart upload,

      /**
       * 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 {
      

      Adding to open file table for non-multipart upload and multipart upload are different. Please rename this API to avoid misuse in the future.

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: