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

Replace RegionState.getRegionInTransition() Map with a Set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.3.0, 1.2.1, 2.0.0
    • 1.4.0, 2.0.0
    • master, Region Assignment
    • None

    Description

      RegionState.getRegionInTransition() is always used as a Set.
      replace the Map with a Set, avoid some allocation and extra code.

      also ClusterStatus.RegionInTransition has duplicated information.
      The spec field contains the regionName (not encoded).
      but we have the same info as part of the region_state with the HRegionInfo serialized.
      unfortunately I don't think we can get rid of 'spec' that being a required field.

      message RegionInTransition {
        required RegionSpecifier spec = 1;
        required RegionState region_state = 2;
      }
      

      Attachments

        1. HBASE-15843-v2.patch
          33 kB
          Matteo Bertozzi
        2. HBASE-15843-v2_branch-1.patch
          36 kB
          Matteo Bertozzi
        3. HBASE-15843-v1.patch
          33 kB
          Matteo Bertozzi
        4. HBASE-15843-v0.patch
          22 kB
          Matteo Bertozzi

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: