Class TestSnapshotCleanerChore
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestSnapshotCleanerChore
Tests for SnapshotsCleanerChore
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Simple helper class that just keeps track of whether or not its stopped. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final HBaseTestingUtility
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription
getSnapshotDescription
(long ttl, String snapshotName, String tableName, long snapshotCreationTime) void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
HBASE_TESTING_UTILITY
-
snapshotManager
-
-
Constructor Details
-
TestSnapshotCleanerChore
public TestSnapshotCleanerChore()
-
-
Method Details
-
getSnapshotCleanerConf
-
testSnapshotCleanerWithoutAnyCompletedSnapshot
- Throws:
IOException
-
testSnapshotCleanerWithNoTtlExpired
- Throws:
IOException
-
testSnapshotCleanerWithSomeTtlExpired
- Throws:
IOException
-
testSnapshotCleanerWithReadIOE
- Throws:
IOException
-
testSnapshotChoreWithTtlOutOfRange
- Throws:
IOException
-
getSnapshotDescription
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription getSnapshotDescription(long ttl, String snapshotName, String tableName, long snapshotCreationTime)
-