petersomogyi opened a new pull request, #8939:
URL: https://github.com/apache/hbase/pull/8939

   When cacheBlock replaces an already cached block (see 
BlockCacheUtil#shouldReplaceExistingCacheBlock), the new block's heap size was 
added to the size counter but the replaced block's size was never subtracted, 
and the element counters were incremented again. Each replace inflated the 
cache size by one block that eviction cannot free, until the cache reached its 
hard limit and rejected inserts while holding few or no blocks.
   
   Use the return value of map.put and, when a block was replaced, subtract its 
size, decrement the element counters and release the cache's reference to it.


-- 
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]

Reply via email to