Package org.apache.hadoop.hbase.snapshot
Class TestMobFlushSnapshotFromClient
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestFlushSnapshotFromClient
org.apache.hadoop.hbase.snapshot.TestMobFlushSnapshotFromClient
Test creating/using/deleting snapshots from the client
This is an end-to-end test for the snapshot utility TODO This is essentially a clone of TestSnapshotFromClient. 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
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.snapshot.TestFlushSnapshotFromClient
admin, DEFAULT_NUM_ROWS, NUM_RS, TABLE_NAME, TEST_FAM, 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
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) Methods inherited from class org.apache.hadoop.hbase.snapshot.TestFlushSnapshotFromClient
cleanupTest, setup, tearDown, testAsyncFlushSnapshot, testFlushCreateListDestroy, testFlushTableSnapshot, testFlushTableSnapshotWithProcedure, testSkipFlushTableSnapshot, testSnapshotFailsOnNonExistantTable, testSnapshotStateAfterMerge, testTakeSnapshotAfterMerge
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestMobFlushSnapshotFromClient
public TestMobFlushSnapshotFromClient()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
setupConf
-
createTable
- Overrides:
createTable
in classTestFlushSnapshotFromClient
- Throws:
Exception
-
verifyRowCount
protected void verifyRowCount(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Overrides:
verifyRowCount
in classTestFlushSnapshotFromClient
- Throws:
IOException
-
countRows
protected int countRows(org.apache.hadoop.hbase.client.Table table, byte[]... families) throws IOException - Overrides:
countRows
in classTestFlushSnapshotFromClient
- Throws:
IOException
-