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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
private org.apache.hadoop.fs.Path
private HBaseCommonTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static org.apache.hadoop.fs.Path
getDestinationDir
(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtility hctu, org.apache.hadoop.fs.Path testDir) (package private) static org.apache.hadoop.fs.Path
setup
(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtility hctu) Setup for test.void
void
V1 snapshot test(package private) static void
testSnapshotWithRefsExportFileSystemState
(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
-