Package org.apache.hadoop.hbase.snapshot
Class TestMobRestoreFlushSnapshotFromClient
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestRestoreFlushSnapshotFromClient
org.apache.hadoop.hbase.snapshot.TestMobRestoreFlushSnapshotFromClient
Test clone/restore snapshots from the client TODO This is essentially a clone of
TestRestoreSnapshotFromClient. This is worth refactoring this because there will be a few more
flavors of snapshots that need to run these tests.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
(package private) final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.snapshot.TestRestoreFlushSnapshotFromClient
admin, FAMILY, snapshot0Rows, snapshot1Rows, snapshotName0, snapshotName1, snapshotName2, tableName, UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
countRows
(org.apache.hadoop.hbase.client.Table table, byte[]... families) protected void
static void
protected static void
setupConf
(org.apache.hadoop.conf.Configuration conf) protected void
verifyRowCount
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) Methods inherited from class org.apache.hadoop.hbase.snapshot.TestRestoreFlushSnapshotFromClient
setup, tearDown, tearDownAfterClass, testCloneNonExistentSnapshot, testCloneSnapshot, testRestoreSnapshot, testRestoreSnapshotOfCloned, testTakeFlushSnapshot
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestMobRestoreFlushSnapshotFromClient
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
setupConf
-
createTable
- Overrides:
createTable
in classTestRestoreFlushSnapshotFromClient
- Throws:
Exception
-
verifyRowCount
protected void verifyRowCount(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Overrides:
verifyRowCount
in classTestRestoreFlushSnapshotFromClient
- Throws:
IOException
-
countRows
protected int countRows(org.apache.hadoop.hbase.client.Table table, byte[]... families) throws IOException - Overrides:
countRows
in classTestRestoreFlushSnapshotFromClient
- Throws:
IOException
-