Package org.apache.hadoop.hbase.snapshot
Class TestExportSnapshotV1NoCluster
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestExportSnapshotV1NoCluster
Test Export Snapshot Tool Tests V1 snapshots only. Used to ALSO test v2 but strange failure so
separate the tests. See companion file for test of v2 snapshot.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate org.apache.hadoop.fs.Pathprivate HBaseCommonTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static org.apache.hadoop.fs.PathgetDestinationDir(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtility hctu, org.apache.hadoop.fs.Path testDir) (package private) static org.apache.hadoop.fs.Pathsetup(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtility hctu) Setup for test.voidvoidV1 snapshot test(package private) static voidtestSnapshotWithRefsExportFileSystemState(org.apache.hadoop.fs.FileSystem fs, SnapshotTestingUtils.SnapshotMock.SnapshotBuilder builder, HBaseCommonTestingUtility testUtil, org.apache.hadoop.fs.Path testDir) Generates a couple of regions for the specified SnapshotMock, and then it will run the export and verification.
-
Field Details
-
CLASS_RULE
-
LOG
-
testUtil
-
testDir
-
fs
-
-
Constructor Details
-
TestExportSnapshotV1NoCluster
public TestExportSnapshotV1NoCluster()
-
-
Method Details
-
setUpBefore
- Throws:
Exception
-
setup
static org.apache.hadoop.fs.Path setup(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtility hctu) throws IOException Setup for test. Returns path to test data dir. Sets configuration into the passed hctu.getConfiguration.- Throws:
IOException
-
testSnapshotWithRefsExportFileSystemState
V1 snapshot test- Throws:
Exception
-
testSnapshotWithRefsExportFileSystemState
static void testSnapshotWithRefsExportFileSystemState(org.apache.hadoop.fs.FileSystem fs, SnapshotTestingUtils.SnapshotMock.SnapshotBuilder builder, HBaseCommonTestingUtility testUtil, org.apache.hadoop.fs.Path testDir) throws Exception Generates a couple of regions for the specified SnapshotMock, and then it will run the export and verification.- Throws:
Exception
-
getDestinationDir
static org.apache.hadoop.fs.Path getDestinationDir(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtility hctu, org.apache.hadoop.fs.Path testDir) throws IOException - Throws:
IOException
-