Class TestSnapshotHFileCleaner
java.lang.Object
org.apache.hadoop.hbase.master.snapshot.TestSnapshotHFileCleaner
@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestSnapshotHFileCleaner
extends Object
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 TypeFieldDescriptionprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.fs.FileSystemprivate 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 IOExceptionvoidtestFindsSnapshotFilesWhenCleaning(org.junit.jupiter.api.TestInfo testInfo) void
-
Field Details
-
TEST_UTIL
-
TABLE_NAME_STR
- See Also:
-
SNAPSHOT_NAME_STR
- See Also:
-
rootDir
-
fs
-
conf
-
-
Constructor Details
-
TestSnapshotHFileCleaner
public TestSnapshotHFileCleaner()
-
-
Method Details
-
setup
Setup the test environment- Throws:
Exception
-
cleanup
- Throws:
IOException
-
testFindsSnapshotFilesWhenCleaning
@Test public void testFindsSnapshotFilesWhenCleaning(org.junit.jupiter.api.TestInfo testInfo) throws IOException - 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
-