Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
From HBase 1.2 on, rows are not exclusively locked when the preBatchMutate call is made (see HBASE-18474). The mutable secondary index (global and local) depend on this to get a consistent snapshot of a row between the point when the current row value is looked up, and when the new row is written, until the mvcc is advanced. Otherwise, a subsequent update to a row may not see the current row state. Even with pre HBase 1.2 releases, the lock isn't held long enough for us. We need to hold the locks from the start of the preBatchMutate (when we read the data table to get the prior row values) until the mvcc is advanced (beginning of postBatchMutateIndispensably).
Given the above, it's best if Phoenix manages the row locking itself (mimicing the current HBase mechanism).
Attachments
Attachments
Issue Links
- relates to
-
HBASE-18474 Document how HRegion#doMiniBatchMutation is acquiring read row locks
- Reopened
-
HBASE-18127 Enable state to be passed between the region observer coprocessor hook calls
- Resolved
-
HBASE-18482 Enable state to be passed between the batch mutate coprocessors
- Resolved