mukul1987 commented on a change in pull request #1897:
URL: https://github.com/apache/ozone/pull/1897#discussion_r571655445



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyRequest.java
##########
@@ -661,9 +661,17 @@ private OmKeyInfo prepareMultipartFileInfo(
     // error no such multipart upload.
     String uploadID = args.getMultipartUploadID();
     Preconditions.checkNotNull(uploadID);
-    String multipartKey = omMetadataManager
-            .getMultipartKey(args.getVolumeName(), args.getBucketName(),
-                    args.getKeyName(), uploadID);
+    String multipartKey = "";
+    if (omPathInfo != null) {
+      // FileTable metadata format
+      multipartKey =
+              
omMetadataManager.getMultipartKey(omPathInfo.getLastKnownParentId(),
+                      omPathInfo.getLeafNodeName(), uploadID);
+    } else {
+      multipartKey = omMetadataManager

Review comment:
       This code should ideally never be called, as this function is specific 
to Prefix optimizations. Should be add a precondition here saying, Not 
reachable code ?




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