public class TestFlushSnapshotFromClient extends Object
This is an end-to-end test for the snapshot utility TODO This is essentially a clone of TestSnapshotFromClient. This is worth refactoring this because there will be a few more flavors of snapshots that need to run these tests.
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected int |
DEFAULT_NUM_ROWS |
private static org.slf4j.Logger |
LOG |
protected static int |
NUM_RS |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
protected static byte[] |
TEST_FAM |
protected static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestFlushSnapshotFromClient() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTest() |
protected int |
countRows(org.apache.hadoop.hbase.client.Table table,
byte[]... families) |
protected void |
createTable() |
void |
setup() |
static void |
setupCluster() |
protected static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testAsyncFlushSnapshot() |
void |
testFlushCreateListDestroy()
Basic end-to-end test of simple-flush-based snapshots
|
void |
testFlushTableSnapshot()
Test simple flush snapshotting a table that is online
|
void |
testFlushTableSnapshotWithProcedure()
Test simple flush snapshotting a table that is online
|
void |
testSkipFlushTableSnapshot()
Test snapshotting a table that is online without flushing
|
void |
testSnapshotFailsOnNonExistantTable() |
void |
testSnapshotStateAfterMerge() |
void |
testTakeSnapshotAfterMerge() |
protected void |
verifyRowCount(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
long expectedRows) |
private void |
waitRegionsAfterMerge(long numRegionsAfterMerge) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility UTIL
protected static final int NUM_RS
protected static final byte[] TEST_FAM
protected static final org.apache.hadoop.hbase.TableName TABLE_NAME
protected final int DEFAULT_NUM_ROWS
protected org.apache.hadoop.hbase.client.Admin admin
public TestFlushSnapshotFromClient()
public static void setupCluster() throws Exception
Exception
protected static void setupConf(org.apache.hadoop.conf.Configuration conf)
protected void createTable() throws Exception
Exception
public static void cleanupTest() throws Exception
Exception
public void testFlushTableSnapshot() throws Exception
Exception
public void testSkipFlushTableSnapshot() throws Exception
Exception
public void testFlushTableSnapshotWithProcedure() throws Exception
Exception
public void testSnapshotFailsOnNonExistantTable() throws Exception
Exception
public void testAsyncFlushSnapshot() throws Exception
Exception
public void testSnapshotStateAfterMerge() throws Exception
Exception
public void testTakeSnapshotAfterMerge() throws Exception
Exception
public void testFlushCreateListDestroy() throws Exception
Exception
private void waitRegionsAfterMerge(long numRegionsAfterMerge) throws IOException, InterruptedException
IOException
InterruptedException
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–2021 The Apache Software Foundation. All rights reserved.