hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1096559 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/HServerAddress.java
Date Mon, 25 Apr 2011 18:50:22 GMT
Author: stack
Date: Mon Apr 25 18:50:21 2011
New Revision: 1096559

URL: http://svn.apache.org/viewvc?rev=1096559&view=rev
Log:
Try fix for failing jenkins test -- handle case where an HSA has a null internal address

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

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/HServerAddress.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/HServerAddress.java?rev=1096559&r1=1096558&r2=1096559&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/HServerAddress.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/HServerAddress.java Mon Apr 25 18:50:21
2011
@@ -146,8 +146,8 @@ public class HServerAddress implements W
 
   @Override
   public int hashCode() {
-    int result = address.hashCode();
-    result ^= stringValue.hashCode();
+    int result = address == null? 0: address.hashCode();
+    result ^= toString().hashCode();
     return result;
   }
 



Mime
View raw message