hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tsuna <tsuna...@gmail.com>
Subject Re: [RFC] Implementing auto increment for row id
Date Tue, 19 Oct 2010 19:39:15 GMT
I would like to add that you can probably get rid of RowLock and use
checkAndPut instead to atomically create the row if it doesn't already
exist.  This would probably solve the last problem I outlined where 2
different instances of your web service attempt to assign the same ID
at the same time.  The code would also be simpler and more efficient.

-- 
Benoit "tsuna" Sigoure
Software Engineer @ www.StumbleUpon.com

Mime
View raw message