[ https://issues.apache.org/jira/browse/HBASE-12295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315670#comment-14315670 ]
ramkrishna.s.vasudevan commented on HBASE-12295: ------------------------------------------------ bq.Another way is maintaining reference counting by ourselves. But this is also hard since we even want to use the BB that fetched from BucketCache in RpcServer Thanks for the ping on this issue. Just seeing that. We are planning to go with ref counting way. As you said to account for the places where all it should be decreased and incremented is quite challenging. Currently the block being referenced is just GC'ed once a new block is loaded. We have tried out a code for this (like POC - may need some clean up ) and verify the correctness for all cases. But it seems to work. We have tested for positive cases. But not for much of the exception cases. We are in the process of reviewing it and improving it. > Prevent block eviction under us if reads are in progress from the BBs > --------------------------------------------------------------------- > > Key: HBASE-12295 > URL: https://issues.apache.org/jira/browse/HBASE-12295 > Project: HBase > Issue Type: Sub-task > Components: regionserver, Scanners > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Fix For: 2.0.0 > > > While we try to serve the reads from the BBs directly from the block cache, > we need to ensure that the blocks does not get evicted under us while > reading. This JIRA is to discuss and implement a strategy for the same. -- This message was sent by Atlassian JIRA (v6.3.4#6332)