hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-2508) Use AtomicInteger for lockIdGenerator in HRegion
Date Sat, 01 May 2010 20:59:56 GMT
Use AtomicInteger for lockIdGenerator in HRegion
------------------------------------------------

                 Key: HBASE-2508
                 URL: https://issues.apache.org/jira/browse/HBASE-2508
             Project: Hadoop HBase
          Issue Type: Improvement
          Components: regionserver
    Affects Versions: 0.20.3
            Reporter: Ted Yu


Currently lockIdGenerator is an int. In obtainRowLock(), retry is needed in case of lockId
collisions.

We can declare lockIdGenerator as AtomicInteger and use incrementAndGet() to get the next
lock Id.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message