You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Semen Komissarov (Jira)" <ji...@apache.org> on 2020/10/17 15:55:00 UTC
[jira] [Updated] (HBASE-24490) Revisit onlineRegions and
onlineRegionsLock in HRegionServer
[ https://issues.apache.org/jira/browse/HBASE-24490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Semen Komissarov updated HBASE-24490:
-------------------------------------
Assignee: Semen Komissarov
Status: Patch Available (was: Open)
> Revisit onlineRegions and onlineRegionsLock in HRegionServer
> ------------------------------------------------------------
>
> Key: HBASE-24490
> URL: https://issues.apache.org/jira/browse/HBASE-24490
> Project: HBase
> Issue Type: Task
> Components: regionserver
> Reporter: Duo Zhang
> Assignee: Semen Komissarov
> Priority: Major
>
> The onlineRegionsLock is only used in closeMetaTableRegions and closeUserRegions, and only writeLock is used so I wonder whether we can change it to a Lock instead of ReadWriteLock.
> And also, in the several getRegions method, we have synchronized (this.onlineRegions), which is not necessary, since the onlineRegions is already a ConcurrentMap.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)