Package org.apache.hadoop.hbase.snapshot
Class TestExportSnapshotV1NoCluster
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestExportSnapshotV1NoCluster
@Tag("org.apache.hadoop.hbase.testclassification.MapReduceTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestExportSnapshotV1NoCluster
extends Object
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 TypeFieldDescriptionprivate org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate org.apache.hadoop.fs.Pathprivate HBaseCommonTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static org.apache.hadoop.fs.PathgetDestinationDir(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtil hctu, org.apache.hadoop.fs.Path testDir) (package private) static org.apache.hadoop.fs.Pathsetup(org.apache.hadoop.fs.FileSystem fs, HBaseCommonTestingUtil hctu) Setup for test.voidvoidV1 snapshot test(package private) static voidtestSnapshotWithRefsExportFileSystemState(org.apache.hadoop.fs.FileSystem fs, SnapshotTestingUtils.SnapshotMock.SnapshotBuilder builder, HBaseCommonTestingUtil 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
-
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, HBaseCommonTestingUtil 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, HBaseCommonTestingUtil 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, HBaseCommonTestingUtil hctu, org.apache.hadoop.fs.Path testDir) throws IOException - Throws:
IOException
-