You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Abhishek Singh Chouhan (JIRA)" <ji...@apache.org> on 2017/11/24 05:32:00 UTC
[jira] [Commented] (HBASE-18127) Enable state to be passed between
the region observer coprocessor hook calls
[ https://issues.apache.org/jira/browse/HBASE-18127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264932#comment-16264932 ]
Abhishek Singh Chouhan commented on HBASE-18127:
------------------------------------------------
As Andrew pointed out we'd need to set this outside of RPC call context since coproc hooks are also called from other places that are not necessarily originating from a RPC call, eg. Flush table operation results in creation of sub procedure on the rs in which case the call context would be null. We might need to have a threadLocal in CoprocessorHost or Environment, however we'd need to set it and remove it across any threadpool doing any operations that involve coprocessor hooks (Doing this for rpc calls and procedures in general would cover most of the use cases but there might be more). [~anoop.hbase] [~ram_krish] [~apurtell]
> Enable state to be passed between the region observer coprocessor hook calls
> ----------------------------------------------------------------------------
>
> Key: HBASE-18127
> URL: https://issues.apache.org/jira/browse/HBASE-18127
> Project: HBase
> Issue Type: New Feature
> Reporter: Lars Hofhansl
> Assignee: Abhishek Singh Chouhan
> Attachments: HBASE-18127.master.001.patch, HBASE-18127.master.002.patch, HBASE-18127.master.002.patch, HBASE-18127.master.003.patch, HBASE-18127.master.004.patch, HBASE-18127.master.005.patch, HBASE-18127.master.005.patch, HBASE-18127.master.006.patch
>
>
> Allow regionobserver to optionally skip postPut/postDelete when postBatchMutate was called.
> Right now a RegionObserver can only statically implement one or the other. In scenarios where we need to work sometimes on the single postPut and postDelete hooks and sometimes on the batchMutate hooks, there is currently no place to convey this information to the single hooks. I.e. the work has been done in the batch, skip the single hooks.
> There are various solutions:
> 1. Allow some state to be passed _per operation_.
> 2. Remove the single hooks and always only call batch hooks (with a default wrapper for the single hooks).
> 3. more?
> [~apurtell], what we had discussed a few days back.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)