Description
As part of PHOENIX-1734 we need to write the index updates to same region from coprocessors but writing from batchMutate API is not allowed because of mvcc.
Raised PHOENIX-2742 to discuss any alternative way to write to the same region directly or not but not having any proper solution there.
Currently we have provision to write wal edits from coprocessors. We can set wal edits in MiniBatchOperationInProgress.
/** * Sets the walEdit for the operation(Mutation) at the specified position. * @param index * @param walEdit */ public void setWalEdit(int index, WALEdit walEdit) { this.walEditsFromCoprocessors[getAbsoluteIndex(index)] = walEdit; }
Similarly we can allow to write mutations from coprocessors to memstore as well. Or else we should provide the batch mutation API allow write in batch mutate coprocessors.
Attachments
Attachments
Issue Links
- is related to
-
HBASE-15714 We are calling checkRow() twice in doMiniBatchMutation()
- Resolved
- relates to
-
HBASE-16992 The usage of mutation from CP is weird.
- Resolved