hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1144004 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java
Date Thu, 07 Jul 2011 19:48:05 GMT
Author: stack
Date: Thu Jul  7 19:48:05 2011
New Revision: 1144004

URL: http://svn.apache.org/viewvc?rev=1144004&view=rev
Log:
HBASE-4074 When a RS has hostname with uppercase letter, there are two RS entries in master
-- addendum

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java?rev=1144004&r1=1144003&r2=1144004&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java Thu Jul  7 19:48:05
2011
@@ -184,7 +184,8 @@ public class ServerName implements Compa
 
   @Override
   public int compareTo(ServerName other) {
-    int compare = this.getHostname().compareTo(other.getHostname());
+    int compare = this.getHostname().toLowerCase().
+      compareTo(other.getHostname().toLowerCase());
     if (compare != 0) return compare;
     compare = this.getPort() - other.getPort();
     if (compare != 0) return compare;



Mime
View raw message