public class TestFlushSnapshotFromClient extends Object
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.
Constructor and Description |
---|
TestFlushSnapshotFromClient() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTest() |
void |
setup() |
static void |
setupCluster()
Setup the config for the cluster
|
void |
tearDown() |
void |
testAsyncFlushSnapshot() |
void |
testConcurrentSnapshottingAttempts()
Demonstrate that we reject snapshot requests if there is a snapshot already running on the
same table currently running and that concurrent snapshots on different tables can both
succeed concurretly.
|
void |
testFlushCreateListDestroy()
Basic end-to-end test of simple-flush-based snapshots
|
void |
testFlushTableSnapshot()
Test simple flush snapshotting a table that is online
|
void |
testFlushTableSnapshotWithProcedure()
Test simple flush snapshotting a table that is online
|
void |
testSkipFlushTableSnapshot()
Test snapshotting a table that is online without flushing
|
void |
testSnapshotFailsOnNonExistantTable() |
void |
testSnapshotStateAfterMerge() |
void |
testTakeSnapshotAfterMerge() |
public static void setupCluster() throws Exception
Exception
- on failurepublic void testFlushTableSnapshot() throws Exception
Exception
public void testSkipFlushTableSnapshot() throws Exception
Exception
public void testFlushTableSnapshotWithProcedure() throws Exception
Exception
public void testSnapshotFailsOnNonExistantTable() throws Exception
Exception
public void testSnapshotStateAfterMerge() throws Exception
Exception
public void testTakeSnapshotAfterMerge() throws Exception
Exception
public void testFlushCreateListDestroy() throws Exception
Exception
public void testConcurrentSnapshottingAttempts() throws IOException, InterruptedException
IOException
InterruptedException