[
https://issues.apache.org/jira/browse/HBASE-4210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440832#comment-13440832
]
Lars Hofhansl commented on HBASE-4210:
--------------------------------------
Then the question: Where to hook this up. Looking at
HRegion.doMiniBatchMutation, we'd leak a lot of internals into the coprocessor
hooks, which is bad.
We also do not want rebuild in array or List or Puts or Deletes again just
because there might be a coprocessor hook.
I guess we have the following options:
# Pass BatchOperationInProgress to these coprocessor hooks (in
HRegion.doMiniBatchMutation)
# Pass the original set of Mutations to the batch pre hook and the same set and
their results (OperationStatus[]) to post hook. This means the post hook will
have to do an extra loop now, to filter out the failed mutations)
> Allow coprocessor to interact with batches per region sent from a client(?)
> ---------------------------------------------------------------------------
>
> Key: HBASE-4210
> URL: https://issues.apache.org/jira/browse/HBASE-4210
> Project: HBase
> Issue Type: New Feature
> Reporter: Lars Hofhansl
> Priority: Minor
>
> Currently the coprocessor write hooks - {pre|post}{Put|Delete} - are strictly
> one row|cell operations.
> It might be a good idea to allow a coprocessor to deal with batches of puts
> and deletes as they arrive from the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira