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:50 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 d21ea4e57 -> 8556e2598


http://git-wip-us.apache.org/repos/asf/hbase/blob/8556e259/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 6b0f5e4..26de7d6 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
@@ -26,7 +26,7 @@ import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.testclassification.LargeTests;
 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;
 import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
@@ -101,8 +101,8 @@ public class TestRestoreFlushSnapshotFromClient {
 
     // create Table and disable it
     SnapshotTestingUtils.createTable(UTIL, tableName, FAMILY);
-    HTable table = new HTable(UTIL.getConfiguration(), tableName);
-    SnapshotTestingUtils.loadData(UTIL, table, 500, FAMILY);
+    SnapshotTestingUtils.loadData(UTIL, tableName, 500, FAMILY);
+    Table table = UTIL.getConnection().getTable(tableName);
     snapshot0Rows = UTIL.countRows(table);
     LOG.info("=== before snapshot with 500 rows");
     logFSTree();
@@ -115,7 +115,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