public class TestSnapshotFromClient extends Object
This is an end-to-end test for the snapshot utility
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static Pattern |
MATCH_ALL |
org.junit.rules.TestName |
name |
protected static int |
NUM_RS |
protected static String |
STRING_TABLE_NAME |
protected static org.apache.hadoop.hbase.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(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testDeleteTableSnapshots() |
void |
testDeleteTableSnapshotsWithRegex() |
void |
testListTableSnapshots() |
void |
testListTableSnapshotsWithRegex() |
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() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
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 org.apache.hadoop.hbase.TableName TABLE_NAME
public org.junit.rules.TestName name
public TestSnapshotFromClient()
public static void setupCluster() throws Exception
Exception - on failureprotected static void setupConf(org.apache.hadoop.conf.Configuration conf)
protected void createTable() throws Exception
Exceptionprotected int getNumReplicas()
public static void cleanupTest() throws Exception
Exceptionpublic void testMetaTablesSnapshot() throws Exception
Exceptionpublic void testSnapshotDeletionWithRegex() throws Exception
Exceptionpublic void testOfflineTableSnapshot() throws Exception
Exceptionpublic void testSnapshotFailsOnNonExistantTable() throws Exception
Exceptionpublic void testOfflineTableSnapshotWithEmptyRegions() throws Exception
Exceptionpublic void testListTableSnapshots() throws Exception
Exceptionpublic void testListTableSnapshotsWithRegex() throws Exception
Exceptionpublic void testDeleteTableSnapshots() throws Exception
Exceptionpublic void testDeleteTableSnapshotsWithRegex() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.