This is an automated email from the ASF dual-hosted git repository.
wchevreuil pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new 5494a42e4a9 HBASE-29703 Remove duplicate calls to
withNextBlockOnDiskSize (#7440)
5494a42e4a9 is described below
commit 5494a42e4a9698dbfd17228f0f8d43ac164d7b4c
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 c963fc2617f..796b44a7a23 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)
.withHFileContext(cloneContext(block.getHFileContext()))
.withNextBlockOnDiskSize(block.getNextBlockOnDiskSize())