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

BaseRegionObserver#pre(Compact|Flush|Store)ScannerOpen returns null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.0, 0.94.8, 0.95.1
    • 0.98.0, 0.94.8, 0.95.1
    • Coprocessors
    • None
    • Hide
      As pointed out in https://github.com/forcedotcom/phoenix/pull/131, BaseRegionObserver#preCompactScannerOpen returns null by default, which hoses any coprocessors down the line, making override of this method mandatory in all subclasses of BaseRegionObserver, when there are multiple levels of coprocessor stacking - this same behavior is present in preFlushScannerOpen and preStoreScannerOpen.

      Instead, we default to returning the passed scanner so earlier coprocessor changes are preserved and still support the default "no custom scanner" by returning null (default scanner passed to each hook).
      Show
      As pointed out in https://github.com/forcedotcom/phoenix/pull/131, BaseRegionObserver#preCompactScannerOpen returns null by default, which hoses any coprocessors down the line, making override of this method mandatory in all subclasses of BaseRegionObserver, when there are multiple levels of coprocessor stacking - this same behavior is present in preFlushScannerOpen and preStoreScannerOpen. Instead, we default to returning the passed scanner so earlier coprocessor changes are preserved and still support the default "no custom scanner" by returning null (default scanner passed to each hook).

    Description

      As pointed out in https://github.com/forcedotcom/phoenix/pull/131, BaseRegionObserver#preCompactScannerOpen returns null by default, which hoses any coprocessors down the line, making override of this method mandatory. The fix is trivial, patch coming momentarily.

      Update:
      This same behavior is present in the Flush and Store versions of the same method - this should all be moved to the proposed 'return passed scanner' default behavior.

      Attachments

        1. 8355.patch
          0.7 kB
          Andrew Kyle Purtell
        2. 8355-0.94.patch
          0.7 kB
          Andrew Kyle Purtell
        3. hbase-8355-0.94-v0.patch
          13 kB
          Jesse Yates
        4. hbase-8355-trunk-v0.patch
          1 kB
          Jesse Yates
        5. hbase-8355-trunk-v1.patch
          13 kB
          Jesse Yates

        Activity

          People

            jesse_yates Jesse Yates
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: