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

Coprocessors: RegionObserver: ScannerNext and ScannerClose hooks are called when get() is invoked

    Details

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

      Description

      RegionObserver upcalls are expected to be triggered by corresponding client calls.

      I found that if a HTable.get() is issued, ScannerNext, and ScannerClose hooks are also invoked.

      Here is the reason: HRegion.get() is implemented with an internal scanner:

          InternalScanner scanner = null;
          try {
            scanner = getScanner(scan);
            scanner.next(results);
          } finally {
            if (scanner != null)
              scanner.close();
          }
      

      where scanner.next, and scanner.close() are implemented with RegionObserver hooks.

        Attachments

        1. HBase3583-3.patch
          26 kB
          Mingjie Lai
        2. HBase3583.patch
          25 kB
          Mingjie Lai

          Activity

            People

            • Assignee:
              mingjielai Mingjie Lai
              Reporter:
              mingjielai Mingjie Lai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: