hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndimi...@apache.org
Subject [1/3] hbase git commit: HBASE-12728 buffered writes substantially less useful after removal of HTablePool (Solomon Duskis and Nick Dimiduk)
Date Fri, 23 Jan 2015 17:13:41 GMT
Repository: hbase
Updated Branches:
  refs/heads/master e13b9938a -> ab18158e6


http://git-wip-us.apache.org/repos/asf/hbase/blob/ab18158e/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRestoreFlushSnapshotFromClient.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRestoreFlushSnapshotFromClient.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRestoreFlushSnapshotFromClient.java
index 4b36c11..ae1ca13 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRestoreFlushSnapshotFromClient.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRestoreFlushSnapshotFromClient.java
@@ -25,7 +25,6 @@ import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.client.Admin;
-import org.apache.hadoop.hbase.client.HTable;
 import org.apache.hadoop.hbase.client.Table;
 import org.apache.hadoop.hbase.master.MasterFileSystem;
 import org.apache.hadoop.hbase.master.snapshot.SnapshotManager;
@@ -103,8 +102,8 @@ public class TestRestoreFlushSnapshotFromClient {
 
     // create Table and disable it
     SnapshotTestingUtils.createTable(UTIL, tableName, FAMILY);
+    SnapshotTestingUtils.loadData(UTIL, tableName, 500, FAMILY);
     Table table = UTIL.getConnection().getTable(tableName);
-    SnapshotTestingUtils.loadData(UTIL, table, 500, FAMILY);
     snapshot0Rows = UTIL.countRows(table);
     LOG.info("=== before snapshot with 500 rows");
     logFSTree();
@@ -117,7 +116,7 @@ public class TestRestoreFlushSnapshotFromClient {
     logFSTree();
 
     // insert more data
-    SnapshotTestingUtils.loadData(UTIL, table, 500, FAMILY);
+    SnapshotTestingUtils.loadData(UTIL, tableName, 500, FAMILY);
     snapshot1Rows = UTIL.countRows(table);
     LOG.info("=== before snapshot with 1000 rows");
     logFSTree();


Mime
View raw message