You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2020/06/02 08:48:00 UTC

[jira] [Created] (HBASE-24490) Revisit onlineRegions and onlineRegionsLock in HRegionServer

Duo Zhang created HBASE-24490:
---------------------------------

             Summary: 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


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)