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

Calculate correct assignment and build region movement plans for mis-placed regions in one pass

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: rsgroup
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In RSGroupBasedLoadBalancer#balanceCluster(clusterState), the logic could be improved:

      correctAssignment() builds a map for mis-placed and placed regions. For mis-placed regions, the key(ServerName) is BOGUS_SERVER_NAME. Then the logic gets those mis-paced regions out and calls findServerForRegion() several times to find out the current host server, in order to build RegionPlan for movement.

      Some logic in correctAssignment() and findServerForRegion() could be merged so as to build both corrected assignment and RegionPlan for mis-placed region in one pass. As a result, findServerForRegion() could be removed if I get it correctly.

        Attachments

        1. HBASE-20133.master.002.patch
          5 kB
          Xiang Li
        2. HBASE-20133.master.001.patch
          5 kB
          Xiang Li
        3. HBASE-20133.master.000.patch
          5 kB
          Xiang Li

          Activity

            People

            • Assignee:
              water Xiang Li
              Reporter:
              water Xiang Li
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: