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

Replace Cluster#primariesOfRegionsPerServer from int array to treemap

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: Balancer
    • Labels:
      None

      Description

      Currently, primariesOfRegionsPerServer is an int array, moveRegion does heavy work by searching the array (linearly) and insert/remove an element requires allocating/copying the whole array.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huaxiangsun Huaxiang Sun
                Reporter:
                huaxiangsun Huaxiang Sun
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: