the-other-tim-brown commented on code in PR #13977:
URL: https://github.com/apache/hudi/pull/13977#discussion_r2373650845


##########
hudi-io/src/main/java/org/apache/hudi/io/hfile/HFileMetaIndexBlock.java:
##########
@@ -32,9 +32,15 @@ public static HFileMetaIndexBlock 
createMetaIndexBlockToWrite(HFileContext conte
     return new HFileMetaIndexBlock(context);
   }
 
+  @Override
+  protected int calculateBufferCapacity() {
+    // Use 5 since the keyLength could use 5 bytes maximally.
+    return longestEntrySize + 5;

Review Comment:
   Below, there is a long and int written in addition to the key length. Does 
this need to account for that?



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

Reply via email to