Package org.apache.hadoop.hbase.snapshot
Class TestExportSnapshotAdjunct
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestExportSnapshotAdjunct
Tests that are adjunct to
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.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private String
private static final org.slf4j.Logger
private String
protected org.apache.hadoop.hbase.TableName
private int
protected static final HBaseTestingUtility
final org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
Check for references to '/tmp'.void
setUp()
Create a table and take a snapshot of the table used by the export test.static void
void
tearDown()
static void
void
Check that ExportSnapshot will fail if we inject failure more times than MR will retry.void
Check that ExportSnapshot will succeed if something fails but the retry succeed.
-
Field Details
-
LOG
-
CLASS_RULE
-
testName
-
TEST_UTIL
-
tableName
-
emptySnapshotName
-
snapshotName
-
tableNumFiles
-
admin
-
-
Constructor Details
-
TestExportSnapshotAdjunct
public TestExportSnapshotAdjunct()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
checkForReferencesToTmpDir
Check for references to '/tmp'. We are trying to avoid having references to outside of the test data dir when running tests. References outside of the test dir makes it so concurrent tests can stamp on each other by mistake. This check is for references to the 'tmp'. This is a strange place for this test but I want somewhere where the configuration is full -- filed w/ hdfs and mapreduce configurations. -
tearDownAfterClass
- Throws:
Exception
-
setUp
Create a table and take a snapshot of the table used by the export test.- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testExportRetry
Check that ExportSnapshot will succeed if something fails but the retry succeed.- Throws:
Exception
-
testExportFailure
Check that ExportSnapshot will fail if we inject failure more times than MR will retry.- Throws:
Exception
-