public class TestSnapshotFromClient
extends java.lang.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 java.lang.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 java.lang.String STRING_TABLE_NAME
protected static final byte[] TEST_FAM
protected static final TableName TABLE_NAME
public static void setupCluster()
throws java.lang.Exception
java.lang.Exception - on failureprotected static void setupConf(Configuration conf)
public void setup()
throws java.lang.Exception
java.lang.Exceptionprotected void createTable()
throws java.lang.Exception
java.lang.Exceptionprotected int getNumReplicas()
public void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic static void cleanupTest()
throws java.lang.Exception
java.lang.Exceptionpublic void testMetaTablesSnapshot()
throws java.lang.Exception
java.lang.Exceptionpublic void testSnapshotDeletionWithRegex()
throws java.lang.Exception
java.lang.Exceptionpublic void testOfflineTableSnapshot()
throws java.lang.Exception
java.lang.Exceptionpublic void testSnapshotFailsOnNonExistantTable()
throws java.lang.Exception
java.lang.Exceptionpublic void testOfflineTableSnapshotWithEmptyRegions()
throws java.lang.Exception
java.lang.Exception