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

   JIRA: https://issues.apache.org/jira/browse/HBASE-30432
   
   regionCachedSize was decremented only in fileNotFullyCached, which 
blockEvicted calls only for persistent IOEngines, so offheap evictions were 
never subtracted. Moved the decrement into blockEvicted to mirror the increment 
in putIntoBackingMap.
   
   This also fixes a double decrement in the persistent cache validation thread 
(evictBlock followed by fileNotFullyCached) that occurred before the fix.
   
   Tests:
   - 
TestBucketCache#testRegionCachedSizeDecrementedOnEvictionForNonPersistentEngine
   - 
TestVerifyBucketCacheFile#testRegionCachedSizeAfterInvalidBlockEvictedOnValidation
 (double decrement)


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