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
Modifier and TypeFieldDescriptionprivate static final int
static final HBaseClassTestRule
private static final org.apache.hadoop.hbase.TableName
private static final org.slf4j.Logger
private static final int
private static final String
private static final org.apache.hadoop.hbase.TableName
private static final byte[]
private static final String
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private void
createSnapshotWithTTL
(org.apache.hadoop.hbase.TableName tableName, String snapshotName, int snapshotTTL) protected void
void
setup()
static void
Setup the config for the clusterprotected static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
void
void
void
-
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
-