public class TestCloneSnapshotFromClient 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 static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestCloneSnapshotFromClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createTableAndSnapshots() |
protected int |
getNumReplicas() |
void |
setup()
Initialize the tests with a table filled with some data
and two snapshots (snapshotName0, snapshotName1) of different states.
|
static void |
setUpBeforeClass() |
protected static void |
setupConfiguration() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCloneLinksAfterDelete()
Verify that tables created from the snapshot are still alive after source table deletion.
|
void |
testCloneNonExistentSnapshot() |
void |
testCloneOnMissingNamespace() |
void |
testCloneSnapshot() |
void |
testCloneSnapshotCrossNamespace() |
protected void |
verifyReplicasCameOnline(TableName tableName) |
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 byte[] emptySnapshot
protected byte[] snapshotName0
protected byte[] snapshotName1
protected byte[] snapshotName2
protected int snapshot0Rows
protected int snapshot1Rows
public org.junit.rules.TestName name
public TestCloneSnapshotFromClient()
protected static void setupConfiguration()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void setup() throws Exception
Exceptionprotected void createTableAndSnapshots() throws Exception
Exceptionprotected int getNumReplicas()
public void testCloneNonExistentSnapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCloneOnMissingNamespace() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCloneSnapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void verifyReplicasCameOnline(TableName tableName) throws IOException
IOExceptionpublic void testCloneSnapshotCrossNamespace() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCloneLinksAfterDelete() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.