public class TestSnapshotFromClient extends Object
This is an end-to-end test for the snapshot utility
Modifier and Type | Field and Description |
---|---|
protected static TableName |
TABLE_NAME |
protected static byte[] |
TEST_FAM |
protected static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestSnapshotFromClient() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTest() |
protected int |
getNumReplicas() |
void |
setup() |
static void |
setupCluster()
Setup the config for the cluster
|
void |
tearDown() |
void |
testMetaTablesSnapshot()
Test snapshotting not allowed hbase:meta and -ROOT-
|
void |
testOfflineTableSnapshot()
Test snapshotting a table that is offline
|
void |
testOfflineTableSnapshotWithEmptyRegions() |
void |
testSnapshotDeletionWithRegex()
Test HBaseAdmin#deleteSnapshots(String) which deletes snapshots whose names match the parameter
|
void |
testSnapshotFailsOnNonExistantTable() |
protected static final HBaseTestingUtility UTIL
protected static final byte[] TEST_FAM
protected static final TableName TABLE_NAME
public static void setupCluster() throws Exception
Exception
- on failureprotected int getNumReplicas()
public void testMetaTablesSnapshot() throws Exception
Exception
public void testSnapshotDeletionWithRegex() throws Exception
Exception
public void testOfflineTableSnapshot() throws Exception
Exception
public void testSnapshotFailsOnNonExistantTable() throws Exception
Exception