Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24490

Revisit onlineRegions and onlineRegionsLock in HRegionServer

    XMLWordPrintableJSON

Details

    • Task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • regionserver
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              semensanyok Semen Komissarov
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: