This is an automated email from the ASF dual-hosted git repository.

wchevreuil pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-3 by this push:
     new 778be3b8863 HBASE-29703 Remove duplicate calls to 
withNextBlockOnDiskSize (#7440)
778be3b8863 is described below

commit 778be3b8863f4914b4aaf087f27140840ab2083a
Author: Liu Xiao <[email protected]>
AuthorDate: Wed Nov 5 22:13:20 2025 +0800

    HBASE-29703 Remove duplicate calls to withNextBlockOnDiskSize (#7440)
    
    Signed-off-by: Wellington Chevreuil <[email protected]>
    Signed-off-by: Duo Zhang <[email protected]>
---
 .../src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java
index 7cc919aa026..e39cb21a422 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java
@@ -285,7 +285,7 @@ public class BlockCacheUtil {
       .withOnDiskSizeWithoutHeader(block.getOnDiskSizeWithoutHeader())
       
.withUncompressedSizeWithoutHeader(block.getUncompressedSizeWithoutHeader())
       .withPrevBlockOffset(block.getPrevBlockOffset()).withByteBuff(buff)
-      
.withFillHeader(FILL_HEADER).withOffset(block.getOffset()).withNextBlockOnDiskSize(-1)
+      .withFillHeader(FILL_HEADER).withOffset(block.getOffset())
       .withOnDiskDataSizeWithHeader(block.getOnDiskDataSizeWithHeader() + 
numBytes)
       .withNextBlockOnDiskSize(block.getNextBlockOnDiskSize())
       .withHFileContext(cloneContext(block.getHFileContext()))

Reply via email to