[ https://issues.apache.org/jira/browse/HBASE-22623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901793#comment-16901793 ]
Anoop Sam John commented on HBASE-22623: ---------------------------------------- preAppend/Increment CP APIs takes Append/Increment only. The WALEdit is not yet created at that time. The need in Phoenix for which this jira been raised want to add some extra Cell into WALEdit only. Dont want to persist any extra Cells into Memstore. If they add the Cell in preAppend/Increment that is not possible right? Also we should handle the issue which I mention above regarding the MiniBatchOperationInProgress and setting new WALEdit into it in CP hook. Well that can be fixed if we had a static Util API to create WALEdit new object by taking N cells. But we should fix it. Also at least one method is missing Private annotation if we want to do that for all Cell addition APIs. May be another Jira we can open for that. But this jira made us to see those issues. > Add RegionObserver coprocessor hook for preWALAppend > ---------------------------------------------------- > > Key: HBASE-22623 > URL: https://issues.apache.org/jira/browse/HBASE-22623 > Project: HBase > Issue Type: New Feature > Reporter: Geoffrey Jacoby > Assignee: Geoffrey Jacoby > Priority: Major > Fix For: 3.0.0, 1.5.0, 2.3.0 > > > While many coprocessor hooks expose the WALEdit to implementing coprocs, > there aren't any that expose the WALKey before it's created and added to the > WALEntry. > It's sometimes useful for coprocessors to be able to edit the WALKey, for > example to add extended attributes using the fields to be added in > HBASE-22622. -- This message was sent by Atlassian JIRA (v7.6.14#76016)