You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2021/03/17 00:20:00 UTC

[jira] [Commented] (HBASE-24395) ServerName#getHostname() is case sensitive

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

Hudson commented on HBASE-24395:
--------------------------------

Results for branch branch-1
	[build #97 on builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/97/]: (x) *{color:red}-1 overall{color}*
----
details (if available):

(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/97//General_Nightly_Build_Report/]


(x) {color:red}-1 jdk7 checks{color}
-- For more information [see jdk7 report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/97//JDK7_Nightly_Build_Report/]


(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/97//JDK8_Nightly_Build_Report_(Hadoop2)/]




(x) {color:red}-1 source release artifact{color}
-- See build output for details.


> ServerName#getHostname() is case sensitive
> ------------------------------------------
>
>                 Key: HBASE-24395
>                 URL: https://issues.apache.org/jira/browse/HBASE-24395
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Balancer
>    Affects Versions: 1.3.1
>            Reporter: Bo Cui
>            Assignee: Bo Cui
>            Priority: Major
>             Fix For: 1.7.0
>
>         Attachments: HBase-24395.patch, image-2020-05-18-17-42-57-119.png
>
>
> ServerName calss,the getServerName(String hostName, int port, long startcode),equals and compareTo are case insensitive, but getHostname() is case sensitive.
> if hostName is HOSTNAME1, ServerName is hostname1,11111,1589615319931, and getHostname() returns HOSTNAME1.
> and then BaseLoadBalancer#retainAssignment() uses ServerName#getHostname(), all keys of serversByHostname are upperCase(HOSTNAME1,HOSTNAME2,HOSTNAME3,HOSTNAME4...) from ServerManager#createDestinationServersList, but oldServerName.getHostname() is lowerCase(hostname1,hostname2,hostname3...) from walLog dir.
> !image-2020-05-18-17-42-57-119.png!
> and finally...all region of old ServerName will be assigned to random hosts



--
This message was sent by Atlassian Jira
(v8.3.4#803005)