sumitagrawl commented on code in PR #7365:
URL: https://github.com/apache/ozone/pull/7365#discussion_r1900655728


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java:
##########
@@ -2134,11 +2140,13 @@ public List<OmKeyInfo> getPendingDeletionSubFiles(long 
volumeId,
         fileInfo.setKeyName(fullKeyPath);
 
         files.add(fileInfo);
+        remainingBufLimit -= objectSerializedSize;
+        consumedSize += objectSerializedSize;

Review Comment:
   First will check if crossing limit, if crosses limit, reject the current one 
and return. Otherwise in boundary cases, it can fail.



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