linliu-code commented on code in PR #12866:
URL: https://github.com/apache/hudi/pull/12866#discussion_r2014971203


##########
hudi-io/src/main/java/org/apache/hudi/io/hfile/HFileRootIndexBlock.java:
##########
@@ -50,16 +54,16 @@ public HFileRootIndexBlock(HFileContext context,
    */
   public TreeMap<Key, BlockIndexEntry> readBlockIndex(int numEntries, boolean 
contentKeyOnly) {
     TreeMap<Key, BlockIndexEntry> blockIndexEntryMap = new TreeMap<>();
-    int buffOffset = startOffsetInBuff + HFILEBLOCK_HEADER_SIZE;
+    int buffOffset = readAttributesOpt.get().startOffsetInBuff + 
HFILEBLOCK_HEADER_SIZE;

Review Comment:
   For write, writeAttributes will be there. For read, readAttributes will be 
there.



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