hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1097928 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java
Date Fri, 29 Apr 2011 19:36:42 GMT
Author: stack
Date: Fri Apr 29 19:36:42 2011
New Revision: 1097928

URL: http://svn.apache.org/viewvc?rev=1097928&view=rev
Log:
HBASE-1502 Aftermath; fix up of broke tests.  Fix TestCatalogTracker hang; mocks needed changing

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java?rev=1097928&r1=1097927&r2=1097928&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java Fri
Apr 29 19:36:42 2011
@@ -289,7 +289,10 @@ public class TestCatalogTracker {
     List<KeyValue> kvs = new ArrayList<KeyValue>();
     kvs.add(new KeyValue(HConstants.EMPTY_BYTE_ARRAY,
       HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER,
-      Bytes.toBytes(SN.toString())));
+      Bytes.toBytes(SN.getHostAndPort())));
+    kvs.add(new KeyValue(HConstants.EMPTY_BYTE_ARRAY,
+      HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER,
+      Bytes.toBytes(SN.getStartcode())));
     final Result result = new Result(kvs);
     Mockito.when(mockHRI.get((byte [])Mockito.any(), (Get)Mockito.any())).
       thenReturn(result);



Mime
View raw message