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)

Reply via email to