You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2014/08/17 06:53:18 UTC

[jira] [Resolved] (HBASE-11767) [0.94] Unnecessary garbage produced by schema metrics during scanning

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

Lars Hofhansl resolved HBASE-11767.
-----------------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed

Committed to 0.94.
Thanks for having a look [~mbertozzi]

> [0.94] Unnecessary garbage produced by schema metrics during scanning
> ---------------------------------------------------------------------
>
>                 Key: HBASE-11767
>                 URL: https://issues.apache.org/jira/browse/HBASE-11767
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Assignee: Lars Hofhansl
>             Fix For: 0.94.23
>
>         Attachments: 11767.txt
>
>
> Near the end of StoreScanner.next(...) we find this gem:
> {code}
>     } finally {
>       if (cumulativeMetric > 0 && metric != null) {
>         RegionMetricsStorage.incrNumericMetric(this.metricNamePrefix + metric,
>             cumulativeMetric);
>       }
>     }
> {code}
> So, for each row generated we build up a new metric string, that will be identical for each invocation of the StoreScanner anyway (a store scanner is valid for at most one region and one operation).



--
This message was sent by Atlassian JIRA
(v6.2#6252)