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
Exception
private void checkForReferencesToTmpDir()
public static void tearDownAfterClass() throws Exception
Exception
public void setUp() throws Exception
Exception
public void testExportRetry() throws Exception
Exception
public void testExportFailure() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.