public class TestRestoreSnapshotFromClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected byte[] |
emptySnapshot |
protected byte[] |
FAMILY |
org.junit.rules.TestName |
name |
protected int |
snapshot0Rows |
protected int |
snapshot1Rows |
protected byte[] |
snapshotName0 |
protected byte[] |
snapshotName1 |
protected byte[] |
snapshotName2 |
protected TableName |
tableName |
protected byte[] |
TEST_FAMILY2 |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestRestoreSnapshotFromClient() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
countRows(Table table,
byte[]... families) |
protected void |
createTable() |
protected int |
getNumReplicas() |
protected HColumnDescriptor |
getTestRestoreSchemaChangeHCD() |
void |
setup()
Initialize the tests with a table filled with some data
and two snapshots (snapshotName0, snapshotName1) of different states.
|
static void |
setupCluster() |
protected static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
protected void |
splitRegion(RegionInfo regionInfo) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCloneAndRestoreSnapshot() |
void |
testCloneSnapshotOfCloned() |
void |
testCorruptedSnapshot() |
void |
testRestoreSchemaChange() |
void |
testRestoreSnapshot() |
void |
testRestoreSnapshotAfterSplittingRegions() |
protected void |
verifyRowCount(HBaseTestingUtility util,
TableName tableName,
long expectedRows) |
public static final HBaseClassTestRule CLASS_RULE
protected static final HBaseTestingUtility TEST_UTIL
protected final byte[] FAMILY
protected final byte[] TEST_FAMILY2
protected byte[] emptySnapshot
protected byte[] snapshotName0
protected byte[] snapshotName1
protected byte[] snapshotName2
protected int snapshot0Rows
protected int snapshot1Rows
public org.junit.rules.TestName name
public TestRestoreSnapshotFromClient()
public static void setupCluster() throws Exception
Exceptionprotected static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void tearDownAfterClass() throws Exception
Exceptionpublic void setup() throws Exception
Exceptionprotected void createTable() throws Exception
Exceptionpublic void testRestoreSnapshot() throws IOException
IOExceptionprotected int getNumReplicas()
protected HColumnDescriptor getTestRestoreSchemaChangeHCD()
public void testRestoreSchemaChange() throws Exception
Exceptionpublic void testCloneSnapshotOfCloned() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCloneAndRestoreSnapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCorruptedSnapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testRestoreSnapshotAfterSplittingRegions() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOExceptionprotected int countRows(Table table, byte[]... families) throws IOException
IOExceptionprotected void splitRegion(RegionInfo regionInfo) throws IOException
IOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.