public class TestRestoreSnapshotHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.fs.Path |
archiveDir |
static HBaseClassTestRule |
CLASS_RULE |
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.hadoop.fs.FileSystem |
fs |
protected org.apache.hadoop.fs.Path |
rootDir |
protected static String |
TEST_HFILE |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestRestoreSnapshotHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected SnapshotTestingUtils.SnapshotMock |
createSnapshotMock() |
protected void |
createTableAndSnapshot(TableName tableName,
String snapshotName) |
void |
setup() |
static void |
setupCluster() |
protected void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
static void |
tearDownCluster() |
void |
testNoHFileLinkInRootDir() |
void |
testRestore() |
void |
testRestoreWithNamespace() |
public static final HBaseClassTestRule CLASS_RULE
protected static final HBaseTestingUtility TEST_UTIL
protected static final String TEST_HFILE
protected org.apache.hadoop.conf.Configuration conf
protected org.apache.hadoop.fs.Path archiveDir
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.fs.Path rootDir
public TestRestoreSnapshotHelper()
protected void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exceptionpublic static void tearDownCluster() throws Exception
Exceptionprotected SnapshotTestingUtils.SnapshotMock createSnapshotMock() throws IOException
IOExceptionpublic void testRestore() throws IOException
IOExceptionpublic void testRestoreWithNamespace() throws IOException
IOExceptionpublic void testNoHFileLinkInRootDir() throws IOException
IOExceptionprotected void createTableAndSnapshot(TableName tableName, String snapshotName) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.