public class TestSnapshotFromClient extends Object
This is an end-to-end test for the snapshot utility
| Modifier and Type | Field and Description |
|---|---|
protected static int |
NUM_RS |
protected static String |
STRING_TABLE_NAME |
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 void |
createTable() |
protected int |
getNumReplicas() |
void |
setup() |
static void |
setupCluster()
Setup the config for the cluster
|
protected static void |
setupConf(Configuration conf) |
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 int NUM_RS
protected static final String STRING_TABLE_NAME
protected static final byte[] TEST_FAM
protected static final TableName TABLE_NAME
public static void setupCluster()
throws Exception
Exception - on failureprotected static void setupConf(Configuration conf)
protected int getNumReplicas()
public void testMetaTablesSnapshot()
throws Exception
Exceptionpublic void testSnapshotDeletionWithRegex()
throws Exception
Exceptionpublic void testOfflineTableSnapshot()
throws Exception
Exceptionpublic void testSnapshotFailsOnNonExistantTable()
throws Exception
Exception