amaliujia commented on code in PR #12071:
URL: https://github.com/apache/ozone/pull/12071#discussion_r4662488019


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java:
##########
@@ -256,6 +257,8 @@ public OMClientResponse validateAndUpdateCache(OzoneManager 
ozoneManager, Execut
           keyName, writerClientId);
       omKeyInfo =
           omMetadataManager.getOpenKeyTable(getBucketLayout()).get(dbOpenKey);
+      // Builder copies below replace the block locations. Retain allocation 
evidence for successful-commit metrics.
+      allocatedKeyInfo = omKeyInfo;

Review Comment:
   Do we need to call `omKeyInfo.copyObject()`?



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

To unsubscribe, e-mail: [email protected]

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