hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: UnknownRowLockException
Date Tue, 24 Jul 2012 22:34:29 GMT
On Tue, Jul 24, 2012 at 3:29 PM, Marco Gallotta <marco@gallotta.co.za> 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.


View raw message