You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/14 17:57:00 UTC

[jira] [Resolved] (HBASE-6756) Move some logic out of the lock range in HRegion.internalPut

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

Andrew Kyle Purtell resolved HBASE-6756.
----------------------------------------
    Resolution: Abandoned

> 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: Lijin Bin
>            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 was sent by Atlassian Jira
(v8.20.7#820007)