Package org.apache.hadoop.hbase.client
Class TestSnapshotWithTTLFromClient
java.lang.Object
org.apache.hadoop.hbase.client.TestSnapshotWithTTLFromClient
Test restore/clone snapshots with TTL from the client
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final HBaseClassTestRuleprivate static final org.apache.hadoop.hbase.TableNameprivate static final org.slf4j.Loggerprivate static final intprivate static final Stringprivate static final org.apache.hadoop.hbase.TableNameprivate static final byte[]private static final Stringprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate voidcreateSnapshotWithTTL(org.apache.hadoop.hbase.TableName tableName, String snapshotName, int snapshotTTL) protected voidvoidsetup()static voidSetup the config for the clusterprotected static voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidtearDown()voidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
NUM_RS
- See Also:
-
STRING_TABLE_NAME
- See Also:
-
TEST_FAM
-
TABLE_NAME
-
CLONED_TABLE_NAME
-
TTL_KEY
- See Also:
-
CHORE_INTERVAL_SECS
- See Also:
-
-
Constructor Details
-
TestSnapshotWithTTLFromClient
public TestSnapshotWithTTLFromClient()
-
-
Method Details
-
setupCluster
Setup the config for the cluster- Throws:
Exception- on failure
-
setupConf
-
setup
- Throws:
Exception
-
createTable
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
testRestoreSnapshotWithTTLSuccess
- Throws:
Exception
-
testRestoreSnapshotFailsDueToTTLExpired
- Throws:
Exception
-
testCloneSnapshotWithTTLSuccess
- Throws:
Exception
-
testCloneSnapshotFailsDueToTTLExpired
- Throws:
Exception
-
createSnapshotWithTTL
private void createSnapshotWithTTL(org.apache.hadoop.hbase.TableName tableName, String snapshotName, int snapshotTTL) throws IOException - Throws:
IOException
-