rakeshadr commented on a change in pull request #1897:
URL: https://github.com/apache/ozone/pull/1897#discussion_r572773928
##########
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:
Thanks @mukul1987 for the review comments.
`OMKeyRequest#prepareMultipartFileInfo()` is a common function, used by both
V0 and V1 code. I've used `omPathInfo != null` as a differentiator between V0
and V1.
V0 code flow:-
`OMKeyRequest#prepareKeyInfo --> OMKeyRequest#prepareFileInfo -->
OMKeyRequest#prepareMultipartFileInfo()`
----------------------------------------------------------------
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]