Package org.apache.hadoop.hbase.client
Class CloneSnapshotFromClientTestBase
java.lang.Object
org.apache.hadoop.hbase.client.CloneSnapshotFromClientTestBase
- Direct Known Subclasses:
CloneSnapshotFromClientAfterSplittingRegionTestBase
,CloneSnapshotFromClientCloneLinksAfterDeleteTestBase
,CloneSnapshotFromClientErrorTestBase
,CloneSnapshotFromClientNormalTestBase
,TestCloneSnapshotFromClientCustomSFT
Base class for testing clone snapsot
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.client.Admin
protected byte[]
protected final byte[]
org.junit.rules.TestName
protected int
protected int
protected byte[]
protected byte[]
protected byte[]
protected org.apache.hadoop.hbase.TableName
protected static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
countRows
(org.apache.hadoop.hbase.client.Table table) protected void
private void
protected int
protected final String
protected int
void
setup()
Initialize the tests with a table filled with some data and two snapshots (snapshotName0, snapshotName1) of different states.static void
protected static void
void
tearDown()
static void
protected void
verifyRowCount
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows)
-
Field Details
-
TEST_UTIL
-
FAMILY
-
emptySnapshot
-
snapshotName0
-
snapshotName1
-
snapshotName2
-
tableName
-
snapshot0Rows
-
snapshot1Rows
-
admin
-
name
-
-
Constructor Details
-
CloneSnapshotFromClientTestBase
public CloneSnapshotFromClientTestBase()
-
-
Method Details
-
setupConfiguration
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
getValidMethodName
-
setup
Initialize the tests with a table filled with some data and two snapshots (snapshotName0, snapshotName1) of different states. The tableName, snapshotNames and the number of rows in the snapshot are initialized.- Throws:
Exception
-
createTable
- Throws:
IOException
InterruptedException
-
numRowsToLoad
-
countRows
- Throws:
IOException
-
createTableAndSnapshots
- Throws:
Exception
-
getNumReplicas
-
verifyRowCount
protected void verifyRowCount(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Throws:
IOException
-
tearDown
- Throws:
Exception
-