public class TestRestoreFlushSnapshotFromClient extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected Admin | 
admin  | 
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(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)  | 
protected static final HBaseTestingUtility UTIL
protected final byte[] FAMILY
protected byte[] snapshotName0
protected byte[] snapshotName1
protected byte[] snapshotName2
protected int snapshot0Rows
protected int snapshot1Rows
protected TableName tableName
protected Admin admin
protected static void setupConf(Configuration conf)
public 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
IOException