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 D1A14100DF for ; Fri, 14 Feb 2014 00:26:38 +0000 (UTC) Received: (qmail 8688 invoked by uid 500); 14 Feb 2014 00:26:21 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 8554 invoked by uid 500); 14 Feb 2014 00:26:20 -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 8531 invoked by uid 99); 14 Feb 2014 00:26:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 00:26:20 +0000 Date: Fri, 14 Feb 2014 00:26:20 +0000 (UTC) From: "Rishit Shroff (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HBASE-7737) [89-fb] Force to generate the hostAddress:port as stringValue in HServerAddress 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-7737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rishit Shroff reassigned HBASE-7737: ------------------------------------ Assignee: Rishit Shroff > [89-fb] Force to generate the hostAddress:port as stringValue in HServerAddress > ------------------------------------------------------------------------------- > > Key: HBASE-7737 > URL: https://issues.apache.org/jira/browse/HBASE-7737 > Project: HBase > Issue Type: Bug > Components: regionserver > Reporter: Rishit Shroff > Assignee: Rishit Shroff > Priority: Trivial > > There is a serious bug in HServerAddress, who depends on the stringValue [class variable] for comparison. This variable is supposed to be host_ip_address:port. > However, there is one constructor which allows user to pass a string as host_ip_address directly. This constructor is buggy because some caller may pass the host name instead of host ip address. And we found out one case in the HBase client. > The fix is to normalize the stringValue generation by calling the existing function getHostAddressWithPort. > For example: > this.stringValue = getHostAddressWithPort(); -- This message was sent by Atlassian JIRA (v6.1.5#6160)