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

Scanner responses from RS should include metrics on rows/KVs filtered

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      Adds scan metrics to the result. In the shell, set the ALL_METRICS attribute to true on your scan to see dump of metrics after results (see the scan help for examples).

      If you would prefer to see only a subset of the metrics, the METRICS array can be defined to include the names of only the metrics you care about.
      Show
      Adds scan metrics to the result. In the shell, set the ALL_METRICS attribute to true on your scan to see dump of metrics after results (see the scan help for examples). If you would prefer to see only a subset of the metrics, the METRICS array can be defined to include the names of only the metrics you care about.

    Description

      Currently it's difficult to know, when issuing a filter, what percentage of rows were skipped by that filter. We should expose some basic counters back to the client scanner object. For example:

      • number of rows filtered by row key alone (filterRowKey())
      • number of times each filter response was returned by filterKeyValue() - corresponding to Filter.ReturnCode

      What would be slickest is if this could actually return a tree of counters for cases where FilterList or other combining filters are used. But a top-level is a good start.

      Attachments

        1. HBASE-5980-v4.patch
          98 kB
          Jonathan Lawlor
        2. HBASE-5980-v3.patch
          98 kB
          Jonathan Lawlor
        3. HBASE-5980-v2.patch
          91 kB
          Jonathan Lawlor
        4. HBASE-5980-v2.patch
          91 kB
          Jonathan Lawlor
        5. HBASE-5980-v1.patch
          88 kB
          Jonathan Lawlor
        6. HBASE-5980-branch-1.patch
          91 kB
          Jonathan Lawlor
        7. 5980v5.txt
          95 kB
          Michael Stack
        8. 5980v5.txt
          95 kB
          Michael Stack
        9. 5980v5.txt
          95 kB
          Michael Stack
        10. 5980v5.txt
          95 kB
          Michael Stack
        11. 5980v5.master.txt
          94 kB
          Michael Stack

        Activity

          People

            jonathan.lawlor Jonathan Lawlor
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: