public class TestRestoreFlushSnapshotFromClient extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
protected int |
snapshot0Rows |
protected int |
snapshot1Rows |
protected byte[] |
snapshotName0 |
protected byte[] |
snapshotName1 |
protected byte[] |
snapshotName2 |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestRestoreFlushSnapshotFromClient() |
Modifier and Type | Method and Description |
---|---|
protected int |
countRows(org.apache.hadoop.hbase.client.Table table,
byte[]... families) |
protected void |
createTable() |
private void |
logFSTree() |
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(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCloneNonExistentSnapshot() |
void |
testCloneSnapshot() |
private void |
testCloneSnapshot(org.apache.hadoop.hbase.TableName tableName,
byte[] snapshotName,
int snapshotRows) |
void |
testRestoreSnapshot() |
void |
testRestoreSnapshotOfCloned() |
void |
testTakeFlushSnapshot() |
protected void |
verifyRowCount(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
long expectedRows) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
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 org.apache.hadoop.hbase.TableName tableName
protected org.apache.hadoop.hbase.client.Admin admin
public TestRestoreFlushSnapshotFromClient()
public static void setupCluster() throws Exception
Exception
protected static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void tearDownAfterClass() throws Exception
Exception
protected void createTable() throws Exception
Exception
public void setup() throws Exception
Exception
public void testTakeFlushSnapshot() throws IOException
IOException
public void testRestoreSnapshot() throws IOException
IOException
public void testCloneNonExistentSnapshot() throws IOException, InterruptedException
IOException
InterruptedException
public void testCloneSnapshot() throws IOException, InterruptedException
IOException
InterruptedException
private void testCloneSnapshot(org.apache.hadoop.hbase.TableName tableName, byte[] snapshotName, int snapshotRows) throws IOException, InterruptedException
IOException
InterruptedException
public void testRestoreSnapshotOfCloned() throws IOException, InterruptedException
IOException
InterruptedException
private void logFSTree() throws IOException
IOException
protected void verifyRowCount(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException
IOException
protected int countRows(org.apache.hadoop.hbase.client.Table table, byte[]... families) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.