public class TestSnapshotHFileCleaner extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestSnapshotHFileCleaner.SnapshotFiles |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.fs.FileSystem |
fs |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.fs.Path |
rootDir |
private static String |
SNAPSHOT_NAME_STR |
private static String |
TABLE_NAME_STR |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestSnapshotHFileCleaner() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup() |
static void |
setup()
Setup the test environment
|
void |
testCorruptedDataManifest()
If there is a corrupted data manifest, it should throw out CorruptedSnapshotException,
instead of an IOException
|
void |
testCorruptedRegionManifest()
If there is a corrupted region manifest, it should throw out CorruptedSnapshotException,
instead of an IOException
|
void |
testFindsSnapshotFilesWhenCleaning() |
void |
testMissedTmpSnapshot() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final String TABLE_NAME_STR
private static final String SNAPSHOT_NAME_STR
private static org.apache.hadoop.fs.Path rootDir
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.conf.Configuration conf
public org.junit.rules.TestName name
public TestSnapshotHFileCleaner()
public static void cleanup() throws IOException
IOException
public void testFindsSnapshotFilesWhenCleaning() throws IOException
IOException
public void testCorruptedRegionManifest() throws IOException
IOException
public void testCorruptedDataManifest() throws IOException
IOException
public void testMissedTmpSnapshot() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.