I acquire the lock before the get. I only setup the get before acquiring the 
lock.

I'm also looking into using checkAndPut.

Marco 

-- 
Marco Gallotta | Mountain View, California
Software Engineer, Infrastructure | Loki Studios
fb.me/marco.gallotta | twitter.com/marcog
[email protected] | +1 (650) 417-3313

Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Tuesday 24 July 2012 at 3:13 PM, Jean-Daniel Cryans wrote:

> On Tue, Jul 24, 2012 at 3:08 PM, Marco Gallotta <[email protected] 
> (mailto:[email protected])> wrote:
> > HBase's increment method says "readers do not take row locks so get and 
> > scan operations can see this operation partially completed", which could 
> > cause problems.
> 
> 
> As far as I can tell your code suffers from the same issue eg if you
> need to increment 2 cells you do 2 puts under two separate locks.
> 
> J-D 

Reply via email to