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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.0
    • 0.92.0
    • Coprocessors
    • None
    • 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.patch
          25 kB
          Mingjie Lai
        2. HBase3583-3.patch
          26 kB
          Mingjie Lai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: