public class TestRegionSnapshotTask extends Object
FlushSnapshotSubprocedure.RegionSnapshotTask
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.fs.FileSystem |
fs |
private org.slf4j.Logger |
LOG |
private static org.apache.hadoop.fs.Path |
rootDir |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestRegionSnapshotTask() |
Modifier and Type | Method and Description |
---|---|
private void |
addRegionToSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.hbase.regionserver.HRegion region,
org.apache.hadoop.hbase.snapshot.SnapshotManifest manifest) |
private org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor |
createRegionVisitorWithDelay(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc,
org.apache.hadoop.fs.Path workingDir) |
static void |
setupBeforeClass() |
private org.apache.hadoop.hbase.client.Table |
setupTable(org.apache.hadoop.hbase.TableName tableName) |
static void |
tearDown() |
void |
testAddRegionWithCompactions()
Tests adding a region to the snapshot manifest while compactions are running on the region.
|
public static final HBaseClassTestRule CLASS_RULE
private final org.slf4j.Logger LOG
private static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.fs.Path rootDir
public TestRegionSnapshotTask()
public static void setupBeforeClass() throws Exception
Exception
public void testAddRegionWithCompactions() throws Exception
Exception
private void addRegionToSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, org.apache.hadoop.hbase.regionserver.HRegion region, org.apache.hadoop.hbase.snapshot.SnapshotManifest manifest) throws Exception
Exception
private org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor createRegionVisitorWithDelay(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc, org.apache.hadoop.fs.Path workingDir)
private org.apache.hadoop.hbase.client.Table setupTable(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.