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

RegionScanner.nextRaw(...) should not update metrics

    XMLWordPrintableJSON

    Details

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

      Description

      I added the RegionScanner.nextRaw(...) to allow "smart" client to avoid some of the default work that HBase is doing, such as

      {start|stop}

      RegionOperation and synchronized(scanner) for each row.

      Metrics should follow the same approach. Collecting them per row is expensive and a caller should have the option to collect those later or to avoid collecting them completely.

      We can also save some cycles in RSRcpServices.scan(...) if we updated the metric only once/batch instead of each row.

        Attachments

        1. HBASE-11876.patch
          6 kB
          Andrew Kyle Purtell
        2. HBASE-11876.patch
          6 kB
          Andrew Kyle Purtell
        3. HBASE-11876-0.98.patch
          3 kB
          Andrew Kyle Purtell
        4. HBASE-11876-0.98.patch
          7 kB
          Andrew Kyle Purtell

          Activity

            People

            • Assignee:
              apurtell Andrew Kyle Purtell
              Reporter:
              larsh Lars Hofhansl
            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: