hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1099971 - /hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java
Date Thu, 05 May 2011 21:20:09 GMT
Author: stack
Date: Thu May  5 21:20:08 2011
New Revision: 1099971

URL: http://svn.apache.org/viewvc?rev=1099971&view=rev
Log:
Fix up jenkins build failure in TestAdmin.testCreateTableWithRegions... address can be null
when doing compareTo

Modified:
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java?rev=1099971&r1=1099970&r2=1099971&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java Thu May
 5 21:20:08 2011
@@ -187,6 +187,8 @@ public class HServerAddress implements W
     // Addresses as Strings may not compare though address is for the one
     // server with only difference being that one address has hostname
     // resolved whereas other only has IP.
+    if (this.address == null) return -1;
+    if (o.address == null) return 1;
     if (address.equals(o.address)) return 0;
     return toString().compareTo(o.toString());
   }



Mime
View raw message