Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11767

[0.94] Unnecessary garbage produced by schema metrics during scanning

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.23
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Near the end of StoreScanner.next(...) we find this gem:

          } finally {
            if (cumulativeMetric > 0 && metric != null) {
              RegionMetricsStorage.incrNumericMetric(this.metricNamePrefix + metric,
                  cumulativeMetric);
            }
          }
      

      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).

        Attachments

        1. 11767.txt
          3 kB
          Lars Hofhansl

          Activity

            People

            • Assignee:
              lhofhansl Lars Hofhansl
              Reporter:
              lhofhansl Lars Hofhansl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: