This is an automated email from the ASF dual-hosted git repository.
zhangduo 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 131abc3537b HBASE-28804 Addendum add missing code in HBASE-28804
(#7551)
131abc3537b is described below
commit 131abc3537b3f77b7fd8dcb45cb7a26c4878d345
Author: Wellington Ramos Chevreuil <[email protected]>
AuthorDate: Mon Dec 29 08:52:05 2025 +0000
HBASE-28804 Addendum add missing code in HBASE-28804 (#7551)
Change-Id: I816141ccebf91191aaa4cb6afa04343b64663eb0
Signed-off-by: Wellington Chevreuil <[email protected]>
Co-authored-by: jhungund <[email protected]>
---
.../main/java/org/apache/hadoop/hbase/io/hfile/HFilePreadReader.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePreadReader.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePreadReader.java
index bb09b98c39c..3e2a0fa7d52 100644
---
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePreadReader.java
+++
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePreadReader.java
@@ -37,6 +37,9 @@ public class HFilePreadReader extends HFileReaderImpl {
public HFilePreadReader(ReaderContext context, HFileInfo fileInfo,
CacheConfig cacheConf,
Configuration conf) throws IOException {
super(context, fileInfo, cacheConf, conf);
+ cacheConf.getBlockCache()
+ .ifPresent(cache ->
cache.waitForCacheInitialization(WAIT_TIME_FOR_CACHE_INITIALIZATION));
+
// Initialize HFileInfo object with metadata for caching decisions
fileInfo.initMetaAndIndex(this);
// master hosted regions, like the master procedures store wouldn't have a
block cache