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

Improve perf of RegionLocationFinder.mapHostNameToServerName

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            thiruvel Thiruvel Thirumoolan
            thiruvel Thiruvel Thirumoolan

            Dates

              Created:
              Updated:

              Slack

                Issue deployment