hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "binlijin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-6756) Move some logic out of the lock range in HRegion.internalPut
Date Tue, 11 Sep 2012 10:48:07 GMT

     [ https://issues.apache.org/jira/browse/HBASE-6756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

binlijin updated HBASE-6756:
----------------------------

    Attachment: HBASE-6756-0.94.patch
    
> Move some logic out of the lock range in HRegion.internalPut
> ------------------------------------------------------------
>
>                 Key: HBASE-6756
>                 URL: https://issues.apache.org/jira/browse/HBASE-6756
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>         Attachments: HBASE-6756-0.94.patch
>
>
> Current in HRegion.internalPut
>  {code}
>     this.updatesLock.readLock().lock();
>     checkFamilies(familyMap.keySet());
>     checkTimestamps(familyMap, now);
>     updateKVTimestamps(familyMap.values(), byteNow);
>     .....
>     this.updatesLock.readLock().unlock();
> {code}
>  
> We can change it to 
>  {code}
>     checkFamilies(familyMap.keySet());
>     checkTimestamps(familyMap, now);
>     updateKVTimestamps(familyMap.values(), byteNow);
>     this.updatesLock.readLock().lock();
>     .....
>     this.updatesLock.readLock().unlock();
> {code}
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message