You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Gavin (JIRA)" <ji...@apache.org> on 2018/08/01 06:22:56 UTC

[jira] [Issue Comment Deleted] (HBASE-19153) LruBlockCache cache too big blocks logic error

     [ https://issues.apache.org/jira/browse/HBASE-19153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin updated HBASE-19153:
--------------------------
    Comment: was deleted

(was: A comment with security level 'jira-users' was removed.)

> LruBlockCache cache too big blocks logic error
> ----------------------------------------------
>
>                 Key: HBASE-19153
>                 URL: https://issues.apache.org/jira/browse/HBASE-19153
>             Project: HBase
>          Issue Type: Bug
>          Components: BlockCache
>    Affects Versions: 2.0.0-alpha-3
>            Reporter: Zhang Quanjin
>            Priority: Trivial
>
> The latest version of LruBolckCache, I found the code logic of cache too big bolcks is inconsistent with annotation.
> If follow the notes, the code should look like this:
> if (buf.heapSize() > maxBlockSize) {
>       // If there are a lot of blocks that are too
>       // big this can make the logs way too noisy.
>       // So we log 2%
>       if (stats.failInsert() % 50 != 0) {
>         return;
>       }
>       LOG.warn("Trying to cache too large a block "
>             + cacheKey.getHfileName() + " @ "
>             + cacheKey.getOffset()
>             + " is " + buf.heapSize()
>             + " which is larger than " + maxBlockSize);
>       
>     }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)