HBASE-27365 Minimise block addition failures due to no space in bucket cache writers queue by introducing wait time - addendum added mistakenly removed in-memory flag

This commit is contained in:
Rajeshbabu Chintaguntla 2022-10-06 16:40:41 +05:30
parent d5af301ea1
commit 9d7614bbdc
1 changed files with 2 additions and 1 deletions

View File

@ -1338,7 +1338,8 @@ public abstract class HFileReaderImpl implements HFile.Reader, Configurable {
cacheConf.getBlockCache().ifPresent(cache -> {
if (cacheBlock && cacheConf.shouldCacheBlockOnRead(category)) {
// Using the wait on cache during compaction and prefetching.
cache.cacheBlock(cacheKey, cacheCompressed ? hfileBlock : unpacked, cacheOnly);
cache.cacheBlock(cacheKey, cacheCompressed ? hfileBlock : unpacked,
cacheConf.isInMemory(), cacheOnly);
}
});
if (unpacked != hfileBlock) {