You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/07/07 21:48:05 UTC

svn commit: r1144004 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/ServerName.java

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;