hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Gallotta <ma...@gallotta.co.za>
Subject Re: UnknownRowLockException
Date Tue, 24 Jul 2012 22:29:50 GMT
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
marco@gallotta.co.za | +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 <marco@gallotta.co.za (mailto:marco@gallotta.co.za)>
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 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message