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
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.fs.FileSystemorg.junit.rules.TestNameprivate static org.apache.hadoop.fs.Pathprivate static final Stringprivate static final Stringprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanup()static voidsetup()Setup the test environmentvoidIf there is a corrupted data manifest, it should throw out CorruptedSnapshotException, instead of an IOExceptionvoidIf there is a corrupted region manifest, it should throw out CorruptedSnapshotException, instead of an IOExceptionvoidvoid
-
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
-