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

Improve perf of RegionLocationFinder.mapHostNameToServerName

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.4, 2.0.0
    • None
    • Balancer

    Description

      RegionLocationFinder.getTopBlockLocations() is called multiple times during balancer. While profiling on a large table balance, mapHostNameToServerName() seem to take a lot of time. One of the maps is repeatedly created for each iteration, while we can just initialize it once.

      Goes into both branch-1 and branch-2, although patches differ slightly.

      Attachments

        1. HBASE-20546.branch-1.4.001.patch
          3 kB
          Thiruvel Thirumoolan

        Issue Links

          Activity

            People

              thiruvel Thiruvel Thirumoolan
              thiruvel Thiruvel Thirumoolan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: