[
https://issues.apache.org/jira/browse/HBASE-28211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wellington Chevreuil resolved HBASE-28211.
------------------------------------------
Resolution: Fixed
Thanks for reviewing it, [~zhangduo]! I have now merged it to master, branch-3,
branch-2, branch-2.5 and branch-2.6.
> BucketCache.blocksByHFile may leak on allocationFailure or if we reach io
> errors tolerated
> ------------------------------------------------------------------------------------------
>
> Key: HBASE-28211
> URL: https://issues.apache.org/jira/browse/HBASE-28211
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.6.0, 3.0.0-alpha-4, 2.4.17, 2.5.6, 4.0.0-alpha-1
> Reporter: Wellington Chevreuil
> Assignee: Wellington Chevreuil
> Priority: Major
> Fix For: 2.6.0, 2.4.18, 3.0.0-beta-1, 4.0.0-alpha-1, 2.5.7
>
>
> We add blocks to BucketCache.blocksByHFile on doDrain before we actually had
> successfully added the block to the cache. We may still fail to cache the
> block if it is too big to fit any of the configured bucket sizes, or if we
> fail to write it in the ioengine and reach the tolerated io errors threshold.
> In such cases, the related block would remain in the
> BucketCache.blocksByHFile indefinitely.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)