apurtell opened a new pull request #3360:
URL: https://github.com/apache/hbase/pull/3360


   Use a row commit sequencer in HRegion to ensure that only the operations 
that mutate disjoint sets of rows are able to commit within the same clock 
tick. This maintains the invariant that more than one mutation to a given row 
will never be committed in the same clock tick.
   
   Callers will first acquire row locks for the row(s) the pending mutation 
will mutate. Then they will use RowCommitSequencer.getRowSequence to ensure 
that the set of rows about to be mutated do not overlap with those for any 
other pending mutations in the current clock tick. If an overlap is identified, 
getRowSequence will yield and loop until there is no longer an overlap and the 
caller's pending mutation can succeed.
   
   TODO: 
   
   - Needs tests. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to