Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F65F187B8 for ; Thu, 5 Nov 2015 02:13:29 +0000 (UTC) Received: (qmail 18961 invoked by uid 500); 5 Nov 2015 02:13:28 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 18854 invoked by uid 500); 5 Nov 2015 02:13:28 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 18381 invoked by uid 99); 5 Nov 2015 02:13:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2015 02:13:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 424A92C1F7D for ; Thu, 5 Nov 2015 02:13:28 +0000 (UTC) Date: Thu, 5 Nov 2015 02:13:28 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14706) RegionLocationFinder should return multiple servernames by top host MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-14706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14990966#comment-14990966 ] Hudson commented on HBASE-14706: -------------------------------- FAILURE: Integrated in HBase-Trunk_matrix #434 (See [https://builds.apache.org/job/HBase-Trunk_matrix/434/]) HBASE-14706 RegionLocationFinder should return multiple servernames by (tedyu: rev 9fc7858c6bb2d0356267cd7bc4aac9e38294c40c) * 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 hostToServerName = new HashMap(); > for (ServerName sn : regionServers) { > hostToServerName.put(sn.getHostname(), sn); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)