[
https://issues.apache.org/jira/browse/HBASE-20546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815682#comment-16815682
]
Thiruvel Thirumoolan commented on HBASE-20546:
----------------------------------------------
Thanks Andy, I think I had a draft patch of it a while back, shelved. Will
resume work on it.
> Improve perf of RegionLocationFinder.mapHostNameToServerName
> ------------------------------------------------------------
>
> Key: HBASE-20546
> URL: https://issues.apache.org/jira/browse/HBASE-20546
> Project: HBase
> Issue Type: Improvement
> Components: Balancer
> Affects Versions: 1.4.4, 2.0.0
> Reporter: Thiruvel Thirumoolan
> Assignee: Thiruvel Thirumoolan
> Priority: Major
> Attachments: HBASE-20546.branch-1.4.001.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)