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
FieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.client.Adminprotected Stringprotected final byte[]protected intprotected intprotected intprotected Stringprotected Stringprotected Stringprotected org.apache.hadoop.hbase.TableNameprotected static final HBaseTestingUtilprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcountRows(org.apache.hadoop.hbase.client.Table table) protected voidprivate voidprotected final Stringprotected intstatic Stream<org.junit.jupiter.params.provider.Arguments>voidsetUp(org.junit.jupiter.api.TestInfo testInfo) Initialize the tests with a table filled with some data and two snapshots (snapshotName0, snapshotName1) of different states.protected static voidvoidtearDown()static voidprotected voidverifyRowCount(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, long expectedRows)
-
Field Details
-
TEST_UTIL
-
FAMILY
-
emptySnapshot
-
snapshotName0
-
snapshotName1
-
snapshotName2
-
tableName
-
snapshot0Rows
-
snapshot1Rows
-
admin
-
numReplicas
-
testName
-
-
Constructor Details
-
CloneSnapshotFromClientTestBase
-
-
Method Details
-
parameters
-
setupConfiguration
-
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:
IOExceptionInterruptedException
-
numRowsToLoad
-
countRows
- Throws:
IOException
-
createTableAndSnapshots
- Throws:
Exception
-
verifyRowCount
protected void verifyRowCount(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Throws:
IOException
-
tearDown
- Throws:
Exception
-