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
Exceptionpublic void testRestoreSnapshot()
                         throws IOException
IOExceptionprotected int getNumReplicas()
protected HColumnDescriptor getTestRestoreSchemaChangeHCD()
public void testCloneSnapshotOfCloned()
                               throws IOException,
                                      InterruptedException
IOExceptionInterruptedExceptionpublic void testCloneAndRestoreSnapshot()
                                 throws IOException,
                                        InterruptedException
IOExceptionInterruptedExceptionpublic void testCorruptedSnapshot()
                           throws IOException,
                                  InterruptedException
IOExceptionInterruptedExceptionprotected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOExceptionprotected int countRows(Table table, byte[]... families) throws IOException
IOException