wchevreuil commented on code in PR #7124:
URL: https://github.com/apache/hbase/pull/7124#discussion_r2192614588
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java:
##########
@@ -1380,7 +1380,7 @@ public HFileBlock readBlock(long dataBlockOffset, long
onDiskBlockSize, final bo
HFileBlock unpackedNoChecksum =
BlockCacheUtil.getBlockForCaching(cacheConf, unpacked);
// Cache the block if necessary
cacheConf.getBlockCache().ifPresent(cache -> {
- if (cacheBlock && cacheConf.shouldCacheBlockOnRead(category)) {
+ if (cacheBlock && cacheOnRead) {
Review Comment:
>is it right about only caching DATA block?
We are not caching only DATA blocks here. We are actually applying the
DataTieringManager for DATA blocks only. If the block type isn't DATA, we just
apply the `shouldCacheBlockOnRead(BlockCategory category)` logic (as we call it
at line #292).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]