On Tue, Jul 24, 2012 at 3:29 PM, Marco Gallotta <[email protected]> wrote: > I acquire the lock before the get. I only setup the get before acquiring the > lock.
Yes, but let's say you want to increment "f:a" and "f:b" in the row "example". Your code requires 2 calls to increment() and would be seen as two different puts so a reader could see "f:a" incremented but not "f:b". It's the same for HBase's increment function, except it's going to be much faster and won't suffer row lock problems. J-D
