HBase
  1. HBase
  2. HBASE-3583

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development