hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14706) RegionLocationFinder should return multiple servernames by top host
Date Thu, 05 Nov 2015 02:45:27 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991009#comment-14991009
] 

Hudson commented on HBASE-14706:
--------------------------------

FAILURE: Integrated in HBase-1.2 #348 (See [https://builds.apache.org/job/HBase-1.2/348/])
HBASE-14706 RegionLocationFinder should return multiple servernames by (tedyu: rev 1cc234768cbdf024598b6f71ae34286009c55f32)
* hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/RegionLocationFinder.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestRegionLocationFinder.java


> RegionLocationFinder should return multiple servernames 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, 1.2.0, 1.3.0
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>             Fix For: 2.0.0, 1.2.0, 1.3.0
>
>         Attachments: HBASE-14706-trunk_v1.patch, HBASE-14706-trunk_v2.patch, HBASE-14706-trunk_v3.patch,
HBASE-14706-trunk_v4.patch, 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