You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2014/06/09 00:09:03 UTC

[jira] [Commented] (HBASE-7737) [89-fb] Force to generate the hostAddress:port as stringValue in HServerAddress

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

Andrew Purtell commented on HBASE-7737:
---------------------------------------

No reason for this to be open still, right?

> [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.2#6252)