public class TestSnapshotCleanerChore extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
TestSnapshotCleanerChore.StoppableImplementation
Simple helper class that just keeps track of whether or not its stopped.
|
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static HBaseTestingUtility |
HBASE_TESTING_UTILITY |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager |
snapshotManager |
| Constructor and Description |
|---|
TestSnapshotCleanerChore() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.hadoop.conf.Configuration |
getSnapshotCleanerConf() |
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription |
getSnapshotDescription(long ttl,
String snapshotName,
String tableName,
long snapshotCreationTime) |
void |
testSnapshotChoreWithTtlOutOfRange() |
void |
testSnapshotCleanerWithNoTtlExpired() |
void |
testSnapshotCleanerWithoutAnyCompletedSnapshot() |
void |
testSnapshotCleanerWithReadIOE() |
void |
testSnapshotCleanerWithSomeTtlExpired() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility HBASE_TESTING_UTILITY
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager snapshotManager
public TestSnapshotCleanerChore()
private org.apache.hadoop.conf.Configuration getSnapshotCleanerConf()
public void testSnapshotCleanerWithoutAnyCompletedSnapshot() throws IOException
IOExceptionpublic void testSnapshotCleanerWithNoTtlExpired() throws IOException
IOExceptionpublic void testSnapshotCleanerWithSomeTtlExpired() throws IOException
IOExceptionpublic void testSnapshotCleanerWithReadIOE() throws IOException
IOExceptionpublic void testSnapshotChoreWithTtlOutOfRange() throws IOException
IOExceptionprivate org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription getSnapshotDescription(long ttl, String snapshotName, String tableName, long snapshotCreationTime)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.