You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "puleya7 (JIRA)" <ji...@apache.org> on 2019/05/10 08:20:00 UTC

[jira] [Assigned] (HBASE-22367) Extra commas in LruBlockCache.logStats between hitRatio and cachingAccesses if hitCount is not 0

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

puleya7 reassigned HBASE-22367:
-------------------------------

    Assignee: puleya7

> Extra commas in LruBlockCache.logStats between hitRatio and cachingAccesses if hitCount is not 0
> ------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-22367
>                 URL: https://issues.apache.org/jira/browse/HBASE-22367
>             Project: HBase
>          Issue Type: Improvement
>          Components: BlockCache
>    Affects Versions: 1.4.10, 1.3.4, 2.1.4, 1.2.12, 1.5.1
>            Reporter: puleya7
>            Assignee: puleya7
>            Priority: Minor
>         Attachments: HBASE-22367.master.patch, hits.is.0.png, hits.not.0.png
>
>
>  
> LruBlockCache#logStats()
> {code:java}
>  "hitRatio=" + (stats.getHitCount() == 0 ?  "0" : (StringUtils.formatPercent(stats.getHitRatio(), 2)+ ", ")) + ", " +
> "cachingAccesses="
> {code}
> if hitCount is not 0, the log will have 2 commas between hitRatio and cachingAccesses



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