[ 
https://issues.apache.org/jira/browse/HBASE-11653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083318#comment-14083318
 ] 

Gary Helmling commented on HBASE-11653:
---------------------------------------

I've attached a proposed simple fix for {{internalPut()}}.  Since all the 
remaining usage of {{HRegion.put(Put)}} seems to be for testing, another option 
would be to remove {{internalPut()}} and switch to using {{batchMutate()}} for 
the single put case.

> RegionObserver coprocessor cannot override KeyValue values in prePut()
> ----------------------------------------------------------------------
>
>                 Key: HBASE-11653
>                 URL: https://issues.apache.org/jira/browse/HBASE-11653
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.94.21
>            Reporter: Gary Helmling
>            Assignee: Gary Helmling
>            Priority: Minor
>         Attachments: HBASE-11653_0.94.patch
>
>
> Due to a bug in {{HRegion.internalPut()}}, any modifications that a 
> {{RegionObserver}} makes to a Put's family map in the {{prePut()}} hook are 
> lost.
> This prevents coprocessors from modifying the values written by a {{Put}}.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to