Package org.apache.hadoop.hbase.snapshot
Class TestFlushSnapshotFromClient
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestFlushSnapshotFromClient
- Direct Known Subclasses:
TestConcurrentFlushSnapshotFromClient
,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 TypeFieldDescriptionprotected org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
protected final int
private static final org.slf4j.Logger
protected static final int
protected static final org.apache.hadoop.hbase.TableName
protected static final byte[]
protected static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
protected int
countRows
(org.apache.hadoop.hbase.client.Table table, byte[]... families) protected void
void
setup()
static void
protected static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
void
Basic end-to-end test of simple-flush-based snapshotsvoid
Test simple flush snapshotting a table that is onlinevoid
Test simple flush snapshotting a table that is onlinevoid
Test snapshotting a table that is online without flushingvoid
void
void
protected void
verifyRowCount
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) private void
waitRegionsAfterMerge
(long numRegionsAfterMerge)
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
NUM_RS
- See Also:
-
TEST_FAM
-
TABLE_NAME
-
DEFAULT_NUM_ROWS
- See Also:
-
admin
-
-
Constructor Details
-
TestFlushSnapshotFromClient
public TestFlushSnapshotFromClient()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
setupConf
-
setup
- Throws:
Exception
-
createTable
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
testFlushTableSnapshot
Test simple flush snapshotting a table that is online- Throws:
Exception
-
testSkipFlushTableSnapshot
Test snapshotting a table that is online without flushing- Throws:
Exception
-
testFlushTableSnapshotWithProcedure
Test simple flush snapshotting a table that is online- Throws:
Exception
-
testSnapshotFailsOnNonExistantTable
- Throws:
Exception
-
testAsyncFlushSnapshot
- Throws:
Exception
-
testSnapshotStateAfterMerge
- Throws:
Exception
-
testTakeSnapshotAfterMerge
- Throws:
Exception
-
testFlushCreateListDestroy
Basic end-to-end test of simple-flush-based snapshots- Throws:
Exception
-
waitRegionsAfterMerge
private void waitRegionsAfterMerge(long numRegionsAfterMerge) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
verifyRowCount
protected void verifyRowCount(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Throws:
IOException
-
countRows
protected int countRows(org.apache.hadoop.hbase.client.Table table, byte[]... families) throws IOException - Throws:
IOException
-