hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guanghao Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-14706) RegionLocationFinder should return multiple servername by top host
Date Wed, 28 Oct 2015 01:17:27 GMT

     [ https://issues.apache.org/jira/browse/HBASE-14706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guanghao Zhang updated HBASE-14706:
-----------------------------------
    Attachment: HBASE-14706.patch

> RegionLocationFinder should return multiple servername by top host
> ------------------------------------------------------------------
>
>                 Key: HBASE-14706
>                 URL: https://issues.apache.org/jira/browse/HBASE-14706
>             Project: HBase
>          Issue Type: Bug
>          Components: Balancer
>    Affects Versions: 2.0.0
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>         Attachments: HBASE-14706.patch
>
>
> Multiple RS can run on the same host. But in current RegionLocationFinder, mapHostNameToServerName
map one host to only one server. This will make LocalityCostFunction get wrong locality about
region.
> {code}
>     // create a mapping from hostname to ServerName for fast lookup
>     HashMap<String, ServerName> hostToServerName = new HashMap<String, ServerName>();
>     for (ServerName sn : regionServers) {
>       hostToServerName.put(sn.getHostname(), sn);
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message