hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1099684 - /hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java
Date Thu, 05 May 2011 05:19:00 GMT
Author: stack
Date: Thu May  5 05:18:59 2011
New Revision: 1099684

URL: http://svn.apache.org/viewvc?rev=1099684&view=rev
Log:
Backport fix for broke jenkins build -- TestAdmin.testCreateTableWithRegions.... HServerAddress
hashcode was getting NPE

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=1099684&r1=1099683&r2=1099684&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 05:18:59 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