public class TestRestoreFlushSnapshotFromClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected byte[] |
FAMILY |
protected int |
snapshot0Rows |
protected int |
snapshot1Rows |
protected byte[] |
snapshotName0 |
protected byte[] |
snapshotName1 |
protected byte[] |
snapshotName2 |
protected TableName |
tableName |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestRestoreFlushSnapshotFromClient() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
countRows(Table table,
byte[]... families) |
protected void |
createTable() |
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) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCloneNonExistentSnapshot() |
void |
testCloneSnapshot() |
void |
testRestoreSnapshot() |
void |
testRestoreSnapshotOfCloned() |
void |
testTakeFlushSnapshot() |
protected void |
verifyRowCount(HBaseTestingUtility util,
TableName tableName,
long expectedRows) |
public static final HBaseClassTestRule CLASS_RULE
protected static final HBaseTestingUtility UTIL
protected final byte[] FAMILY
protected byte[] snapshotName0
protected byte[] snapshotName1
protected byte[] snapshotName2
protected int snapshot0Rows
protected int snapshot1Rows
public TestRestoreFlushSnapshotFromClient()
public static void setupCluster() throws Exception
Exceptionprotected static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void tearDownAfterClass() throws Exception
Exceptionprotected void createTable() throws Exception
Exceptionpublic void setup() throws Exception
Exceptionpublic void testTakeFlushSnapshot() throws IOException
IOExceptionpublic void testRestoreSnapshot() throws IOException
IOExceptionpublic void testCloneNonExistentSnapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCloneSnapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testRestoreSnapshotOfCloned() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOExceptionprotected int countRows(Table table, byte[]... families) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.