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

Introduce two new region coprocessor method and deprecated postMutationBeforeWAL

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-1, 2.2.0
    • Component/s: None
    • Labels:
      None
    • Release Note:
      Deprecated region coprocessor postMutationBeforeWAL and introduce two new region coprocessor postIncrementBeforeWAL and postAppendBeforeWAL instead.

      Description

      The old method postMutationBeforeWAL is not accurate about what it do. It is only called during increment and append. But the name is "Mutation"... And the javadoc only said it will be called by increment...

      * Called after a new cell has been created during an increment operation, but before
      * it is committed to the WAL or memstore.
      

       

      We use this coprocessor in our use case. And need add some cells to apply to WAL. So I introduced two new method postIncrementBeforeWAL and postAppendBeforeWAL to instead of this.

        Attachments

        1. HBASE-21643.master.001.patch
          9 kB
          Guanghao Zhang
        2. HBASE-21643.master.002.patch
          14 kB
          Guanghao Zhang
        3. HBASE-21643.master.003.patch
          16 kB
          Guanghao Zhang

          Issue Links

            Activity

              People

              • Assignee:
                zghao Guanghao Zhang
                Reporter:
                zghao Guanghao Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: