public class TestExportSnapshotAdjunct extends Object
TestExportSnapshot. They used to be in same test suite but the
test suite ran too close to the maximum time limit so we split these out. Uses facility from
TestExportSnapshot where possible.TestExportSnapshot| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private String |
emptySnapshotName |
private static org.slf4j.Logger |
LOG |
private String |
snapshotName |
protected org.apache.hadoop.hbase.TableName |
tableName |
private int |
tableNumFiles |
protected static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestExportSnapshotAdjunct() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkForReferencesToTmpDir()
Check for references to '/tmp'.
|
void |
setUp()
Create a table and take a snapshot of the table used by the export test.
|
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testExportFailure()
Check that ExportSnapshot will fail if we inject failure more times than MR will retry.
|
void |
testExportRetry()
Check that ExportSnapshot will succeed if something fails but the retry succeed.
|
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
public final org.junit.rules.TestName testName
protected static final HBaseTestingUtility TEST_UTIL
protected org.apache.hadoop.hbase.TableName tableName
private String emptySnapshotName
private String snapshotName
private int tableNumFiles
private org.apache.hadoop.hbase.client.Admin admin
public TestExportSnapshotAdjunct()
public static void setUpBeforeClass() throws Exception
Exceptionprivate void checkForReferencesToTmpDir()
public static void tearDownAfterClass() throws Exception
Exceptionpublic void setUp() throws Exception
Exceptionpublic void testExportRetry() throws Exception
Exceptionpublic void testExportFailure() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.