[ 
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)

Reply via email to