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[]org.junit.rules.TestNameprotected intprotected intprotected Stringprotected Stringprotected Stringprotected org.apache.hadoop.hbase.TableNameprotected static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcountRows(org.apache.hadoop.hbase.client.Table table) protected voidprivate voidprotected intprotected final Stringprotected intvoidsetup()Initialize the tests with a table filled with some data and two snapshots (snapshotName0, snapshotName1) of different states.static voidprotected 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
-
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:
IOExceptionInterruptedException
-
numRowsToLoad
-
countRows
- Throws:
IOException
-
createTableAndSnapshots
- Throws:
Exception
-
getNumReplicas
-
verifyRowCount
protected void verifyRowCount(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException - Throws:
IOException
-
tearDown
- Throws:
Exception
-