linyiqun commented on a change in pull request #1923:
URL: https://github.com/apache/ozone/pull/1923#discussion_r577592666



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequestV1.java
##########
@@ -147,8 +148,18 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
       // Set the UpdateID to current transactionLogIndex
       omKeyInfo.setUpdateID(trxnLogIndex, ozoneManager.isRatisEnabled());
 
-      String ozoneKey = omMetadataManager.getOzonePathKey(parentID, fileName);
-      partName = ozoneKey + clientID;
+      /**
+       * Format of PartName stored into MultipartInfoTable is,
+       * "fileName + ClientID".
+       *
+       * Contract is that all part names present in a multipart info will
+       * have same key prefix path.
+       *
+       * For example:
+       *        /vol1/buck1/a/b/c/part-1, /vol1/buck1/a/b/c/part-2,
+       *        /vol1/buck1/a/b/c/part-n
+       */
+      dbPartName = fileName + clientID;

Review comment:
       @rakeshadr , I see current format  in multipartFileInfoTable, 
openFileTable, FileTable is like below.
   
      * |  fileTable         | parentId/fileName -> KeyInfo                    |
      * |----------------------------------------------------------------------|
      * |  openFileTable     | parentId/fileName/id -> KeyInfo                 |
      * |----------------------------------------------------------------------|
      * |  multipartFileInfoTable | parentId/fileName/uploadId ->...  
   
   
    So the format of part name is already follow above pattern now. So still 
need to do above part name change here?
   ```java
   String ozoneKey = omMetadataManager.getOzonePathKey(parentID, fileName);
   partName = ozoneKey + clientID;
   ```




----------------------------------------------------------------
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]



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

Reply via email to