hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1146241 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestScanMultipleVersions.java
Date Wed, 13 Jul 2011 19:08:58 GMT
Author: stack
Date: Wed Jul 13 19:08:58 2011
New Revision: 1146241

URL: http://svn.apache.org/viewvc?rev=1146241&view=rev
Log:
Fix broken TestScanMultipleVersions test -- needed .tableinfo defined before test started...
part of the repercussions from hbase-451

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

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestScanMultipleVersions.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestScanMultipleVersions.java?rev=1146241&r1=1146240&r2=1146241&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestScanMultipleVersions.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestScanMultipleVersions.java Wed Jul
13 19:08:58 2011
@@ -20,6 +20,7 @@
 
 package org.apache.hadoop.hbase;
 
+import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.HTable;
@@ -29,6 +30,7 @@ import org.apache.hadoop.hbase.client.Sc
 import org.apache.hadoop.hbase.client.ResultScanner;
 import org.apache.hadoop.hbase.regionserver.HRegion;
 import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.hbase.util.FSUtils;
 
 /**
  * Regression test for HBASE-613
@@ -51,10 +53,12 @@ public class TestScanMultipleVersions ex
   protected void preHBaseClusterSetup() throws Exception {
     testDir = new Path(conf.get(HConstants.HBASE_DIR));
 
-    // Create table description
-
+    // Create table description in
     this.desc = new HTableDescriptor(TABLE_NAME);
     this.desc.addFamily(new HColumnDescriptor(HConstants.CATALOG_FAMILY));
+    // Write the table schema to the fs
+    FSUtils.createTableDescriptor(FileSystem.get(this.conf), this.testDir,
+      this.desc);
 
     // Region 0 will contain the key range [,row_0500)
     INFOS[0] = new HRegionInfo(desc.getName(), HConstants.EMPTY_START_ROW,



Mime
View raw message