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
Exception
protected int getNumReplicas()
public static void cleanupTest() throws Exception
Exception
public void testMetaTablesSnapshot() throws Exception
Exception
public void testSnapshotDeletionWithRegex() throws Exception
Exception
public void testOfflineTableSnapshot() throws Exception
Exception
public void testSnapshotFailsOnNonExistantTable() throws Exception
Exception
public void testOfflineTableSnapshotWithEmptyRegions() throws Exception
Exception
public void testListTableSnapshots() throws Exception
Exception
public void testListTableSnapshotsWithRegex() throws Exception
Exception
public void testDeleteTableSnapshots() throws Exception
Exception
public void testDeleteTableSnapshotsWithRegex() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.