You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by wc...@apache.org on 2025/11/05 14:26:27 UTC
(hbase) branch branch-2 updated: HBASE-29703 Remove duplicate calls to withNextBlockOnDiskSize (#7440)
This is an automated email from the ASF dual-hosted git repository.
wchevreuil pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 4a4440410b0 HBASE-29703 Remove duplicate calls to withNextBlockOnDiskSize (#7440)
4a4440410b0 is described below
commit 4a4440410b0ce6292701de551a9f9d8af8c897af
Author: Liu Xiao <42...@users.noreply.github.com>
AuthorDate: Wed Nov 5 22:13:20 2025 +0800
HBASE-29703 Remove duplicate calls to withNextBlockOnDiskSize (#7440)
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
Signed-off-by: Duo Zhang <zh...@apache.org>
---
.../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()))