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-3.patch
        26 kB
        Mingjie Lai
      2. HBase3583.patch
        25 kB
        Mingjie Lai

        Activity

        Mingjie Lai created issue -
        ryan rawson made changes -
        Field Original Value New Value
        Fix Version/s 0.92.0 [ 12314223 ]
        Fix Version/s 0.90.2 [ 12316152 ]
        Affects Version/s 0.92.0 [ 12314223 ]
        Affects Version/s 0.90.2 [ 12316152 ]
        Mingjie Lai made changes -
        Attachment HBase3583.patch [ 12472479 ]
        stack made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Mingjie Lai made changes -
        Attachment HBase3583-3.patch [ 12474452 ]
        Andrew Purtell made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development