public class TestCloneSnapshotFromClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Admin |
admin |
protected byte[] |
emptySnapshot |
protected byte[] |
FAMILY |
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) |
protected static final HBaseTestingUtility TEST_UTIL
protected final byte[] FAMILY
protected byte[] emptySnapshot
protected byte[] snapshotName0
protected byte[] snapshotName1
protected byte[] snapshotName2
protected TableName tableName
protected int snapshot0Rows
protected int snapshot1Rows
protected Admin admin
protected static void setupConfiguration()
public void setup()
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
IOException