Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
Would be good to have some documentation on the locking in HRegion. In particular, the updateLock and the row locks.
With the optimizations that have been made, e.g. HBASE-5541 this isn't straightforward.
When do these locks need to be held? What structures do they protect access to? Why does the updateLock not need to be held during rollback? Those sorts of questions.
I've started do to some of this, but haven't fully fleshed it out.