public class TestRestoreSnapshotFromClient extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
FAMILY |
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(Configuration conf) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCloneAndRestoreSnapshot() |
void |
testCloneSnapshotOfCloned() |
void |
testCorruptedSnapshot() |
void |
testRestoreSchemaChange() |
void |
testRestoreSnapshot() |
protected void |
verifyRowCount(HBaseTestingUtility util,
TableName tableName,
long expectedRows) |
protected static final HBaseTestingUtility TEST_UTIL
protected final byte[] FAMILY
protected final byte[] TEST_FAMILY2
protected TableName tableName
protected static void setupConf(Configuration conf)
public void setup() throws Exception
Exception
public void testRestoreSnapshot() throws IOException
IOException
protected int getNumReplicas()
protected HColumnDescriptor getTestRestoreSchemaChangeHCD()
public void testCloneSnapshotOfCloned() throws IOException, InterruptedException
IOException
InterruptedException
public void testCloneAndRestoreSnapshot() throws IOException, InterruptedException
IOException
InterruptedException
public void testCorruptedSnapshot() throws IOException, InterruptedException
IOException
InterruptedException
protected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOException
protected int countRows(Table table, byte[]... families) throws IOException
IOException