public class TestSnapshotManifest extends Object
Modifier and Type | Field and Description |
---|---|
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder |
builder |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.FileSystem |
fs |
private org.slf4j.Logger |
LOG |
private org.apache.hadoop.fs.Path |
rootDir |
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription |
snapshotDesc |
private org.apache.hadoop.fs.Path |
snapshotDir |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static String |
TABLE_NAME_STR |
private static int |
TEST_NUM_REGIONFILES |
private static int |
TEST_NUM_REGIONS |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestSnapshotManifest() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.fs.Path |
createDataManifest() |
private org.apache.hadoop.fs.Path |
createRegionManifest() |
void |
setup() |
void |
tearDown() |
void |
testReadSnapshotManifest() |
void |
testReadSnapshotRegionManifest() |
private org.apache.hadoop.fs.Path |
writeDataManifest(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDataManifest manifest) |
public static final HBaseClassTestRule CLASS_RULE
private final org.slf4j.Logger LOG
private static final String TABLE_NAME_STR
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final int TEST_NUM_REGIONS
private static final int TEST_NUM_REGIONFILES
private static HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.fs.Path rootDir
private org.apache.hadoop.fs.Path snapshotDir
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshotDesc
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder builder
public TestSnapshotManifest()
public void testReadSnapshotManifest() throws IOException
IOException
public void testReadSnapshotRegionManifest() throws IOException
IOException
private org.apache.hadoop.fs.Path createDataManifest() throws IOException
IOException
private org.apache.hadoop.fs.Path createRegionManifest() throws IOException
IOException
private org.apache.hadoop.fs.Path writeDataManifest(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDataManifest manifest) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.