HBASE-27013 Introduce read all bytes when using pread for prefetch (#4414)
authorTak Lon (Stephen) Wu <taklwu@apache.org>
Fri, 13 May 2022 19:16:35 +0000 (12:16 -0700)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 19:16:35 +0000 (12:16 -0700)
commit0eb1a4e5ed52ce8b962d69b090487602d798d46d
treea62adda6d048afca9a6b62b17856939d6e1a575e
parentba7ef0216a2a13b82e936849dea006fec2061c03
HBASE-27013 Introduce read all bytes when using pread for prefetch (#4414)

- introduce optional flag `hfile.pread.all.bytes.enabled` for pread that must read full bytes with the next block header
hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
hbase-common/src/main/java/org/apache/hadoop/hbase/io/util/BlockIOUtils.java
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/ReaderContext.java
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestBlockIOUtils.java