[
https://issues.apache.org/jira/browse/HBASE-22480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16849089#comment-16849089
]
ramkrishna.s.vasudevan commented on HBASE-22480:
------------------------------------------------
So here it means that the
{code}
HFileBlock seekToBlock = reader.getDataBlockIndexReader().seekToDataBlock(key,
curBlock,
cacheBlocks, pread, isCompaction,
reader.getEffectiveEncodingInCache(isCompaction));
if (seekToBlock == null) {
return false;
}
{code}
the seekToDataBlock() returns the same curBlock and so you want the curBlock
from being returned? But just after this anyway the curBlock is updated with a
new block right?
> Get block from BlockCache once and return this block to BlockCache twice make
> ref count error.
> ----------------------------------------------------------------------------------------------
>
> Key: HBASE-22480
> URL: https://issues.apache.org/jira/browse/HBASE-22480
> Project: HBase
> Issue Type: Sub-task
> Reporter: binlijin
> Assignee: binlijin
> Priority: Major
> Attachments: HBASE-22480-master-v1.patch, HBASE-22480-master-v2.patch
>
>
> After debugging HBASE-22433, i find the problem it is that we get a block
> from BucketCache once and return this block to BucketCache twice and make the
> ref count error, sometimes the refCount can be negative.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)