HBase
  1. HBase
  2. HBASE-4331

Bypassing default actions in prePut fails sometimes with HTable client

    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

      While testing some other scenario I found calling CoprocessorEnvironment.bypass() fails if all trailing puts in a batch are bypassed that way. By extension a single bypassed put will also fail.

      The problem is that the puts are removed from the batch in a way that does not align them with the result-status, and in addition the result is never marked as success.

      A possible fix is to just mark bypassed puts as SUCCESS and filter them in the following logic.
      (I also contemplated a new BYPASSED OperationStatusCode, but that turned out to be not necessary).

      1. 4331.txt
        2 kB
        Lars Hofhansl
      2. 4331-v2.txt
        7 kB
        Lars Hofhansl
      3. 4331-v3.txt
        7 kB
        Lars Hofhansl
      4. 4331-v4.txt
        8 kB
        Lars Hofhansl

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Lars Hofhansl
            Reporter:
            Lars Hofhansl
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development