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
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate Stringprivate static final org.slf4j.Loggerprivate Stringprotected org.apache.hadoop.hbase.TableNameprivate intprotected static final HBaseTestingUtilfinal org.junit.rules.TestName - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate voidCheck for references to '/tmp'.voidsetUp()Create a table and take a snapshot of the table used by the export test.static voidvoidtearDown()static voidvoidCheck that ExportSnapshot will fail if we inject failure more times than MR will retry.voidCheck 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
 
 -