You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "qgxiaozhan (JIRA)" <ji...@apache.org> on 2016/07/13 07:05:20 UTC

[jira] [Commented] (HBASE-16222) RegionServer hostName is different between zk and hbase:meta

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

qgxiaozhan commented on HBASE-16222:
------------------------------------

hbase-1.1.2/hbase-client/src/main/java/org/apache/hadoop/hbase/ServerName.java b/hbase-1.1.2/hbase-client/src/main/java/org/apache/hadoop/hbase/ServerName.java
index 3d1258f..8d2e957 100644
--- a/hbase-1.1.2/hbase-client/src/main/java/org/apache/hadoop/hbase/ServerName.java
+++ b/hbase-1.1.2/hbase-client/src/main/java/org/apache/hadoop/hbase/ServerName.java
@@ -230,7 +230,7 @@ public class ServerName implements Comparable<ServerName>, Serializable {
    */
   static String getServerName(String hostName, int port, long startcode) {
     final StringBuilder name = new StringBuilder(hostName.length() + 1 + 5 + 1 + 13);
-    name.append(hostName.toLowerCase());
+    name.append(hostName);
     name.append(SERVERNAME_SEPARATOR);
     name.append(port);
     name.append(SERVERNAME_SEPARATOR);

> RegionServer hostName is different between zk  and hbase:meta
> -------------------------------------------------------------
>
>                 Key: HBASE-16222
>                 URL: https://issues.apache.org/jira/browse/HBASE-16222
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1.2
>            Reporter: qgxiaozhan
>            Priority: Minor
>
> I migrated rs-group in 1.1.2version,and found regionserver host is different between zk and meta table. 
> For example, host BeiJIN.98.100.hbase.com In zk or master is beijin.98.100.hbase.com , but in meter table  is BeiJIN.98.199.hbase.com. 
> Because of this , when rsgroup balance compare host , that cause problem 。 
> And i found when regionserver report host to master , it will make the hostname to lowcase。



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)