Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6922 HBase scanner performance improvements
  3. HBASE-7026

Make metrics collection in StoreScanner.java more efficient

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Per the benchmarks I ran, the following block of code seems to be inefficient:
      StoreScanner.java:
      public synchronized boolean next(List<KeyValue> outResult, int limit,
      String metric) throws IOException {
      // ...
      // update the counter
      if (addedResultsSize > 0 && metric != null)

      { HRegion.incrNumericMetric(this.metricNamePrefix + metric, addedResultsSize); }

      // ...

      Removing this block increased throughput by 10%. We should move this to the outer layer.

      Attachments

        Activity

          People

            karthik.ranga Karthik Ranganathan
            karthik.ranga Karthik Ranganathan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: