Class TestSnapshotHFileCleaner
java.lang.Object
org.apache.hadoop.hbase.master.snapshot.TestSnapshotHFileCleaner
Test that the snapshot hfile cleaner finds hfiles referenced in a snapshot
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static org.apache.hadoop.fs.FileSystem
org.junit.rules.TestName
private static org.apache.hadoop.fs.Path
private static final String
private static final String
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cleanup()
static void
setup()
Setup the test environmentvoid
If there is a corrupted data manifest, it should throw out CorruptedSnapshotException, instead of an IOExceptionvoid
If there is a corrupted region manifest, it should throw out CorruptedSnapshotException, instead of an IOExceptionvoid
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
TABLE_NAME_STR
- See Also:
-
SNAPSHOT_NAME_STR
- See Also:
-
rootDir
-
fs
-
conf
-
name
-
-
Constructor Details
-
TestSnapshotHFileCleaner
public TestSnapshotHFileCleaner()
-
-
Method Details
-
setup
Setup the test environment- Throws:
Exception
-
cleanup
- Throws:
IOException
-
testFindsSnapshotFilesWhenCleaning
- Throws:
IOException
-
testCorruptedRegionManifest
If there is a corrupted region manifest, it should throw out CorruptedSnapshotException, instead of an IOException- Throws:
IOException
-
testCorruptedDataManifest
If there is a corrupted data manifest, it should throw out CorruptedSnapshotException, instead of an IOException- Throws:
IOException
-
testMissedTmpSnapshot
- Throws:
IOException
-