anoopsjohn commented on a change in pull request #257: HBASE-22463 Some paths
in HFileScannerImpl did not consider block#release which will exhaust the
ByteBuffAllocator
URL: https://github.com/apache/hbase/pull/257#discussion_r288848488
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
##########
@@ -522,16 +522,9 @@ public Cacheable getBlock(BlockCacheKey cacheKey, boolean
caching, boolean repea
if (victimHandler != null && !repeat) {
// The handler will increase result's refCnt for RPC, so need no extra
retain.
Cacheable result = victimHandler.getBlock(cacheKey, caching, repeat,
updateCacheMetrics);
-
// Promote this to L1.
if (result != null) {
if (caching) {
- if (result instanceof HFileBlock && ((HFileBlock)
result).usesSharedMemory()) {
Review comment:
As part of the new issue, we have to handle here also.. Because when it is
shared memory, we can not keep the block as is in LRU cache.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services