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

Enable state to be passed between the batch mutate coprocessors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      For secondary indexing, Phoenix leverages the coprocessors that fire during the processing of a batch mutate: preBatchMutate, postBatchMutate, and postBatchMutateIndispensably. It would be very helpful if we had a way of passing state between these calls. One solution would be to provide a member variable in the MiniBatchOperationInProgress class that gets passed from invocation to invocation. Within doMiniBatchMutation, the instantiation of the MiniBatchOperationInProgress would simply set this context member variable based on the value from the previous MiniBatchOperationInProgress instantiation. Another solution would be to allow the a context object to be set on the ObserverContext which would then be available to the other calls.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamestaylor James R. Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: