public class TestRestoreSnapshotProcedure extends TestTableDDLProcedureBase
Modifier and Type | Field and Description |
---|---|
protected byte[] |
CF1 |
protected byte[] |
CF2 |
protected byte[] |
CF3 |
protected byte[] |
CF4 |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
protected int |
rowCountCF1 |
protected int |
rowCountCF1addition |
protected int |
rowCountCF2 |
protected int |
rowCountCF3 |
protected int |
rowCountCF4 |
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription |
snapshot |
private org.apache.hadoop.hbase.HTableDescriptor |
snapshotHTD |
protected org.apache.hadoop.hbase.TableName |
snapshotTableName |
UTIL
Constructor and Description |
---|
TestRestoreSnapshotProcedure() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.HTableDescriptor |
createHTableDescriptor(org.apache.hadoop.hbase.TableName tableName,
byte[]... family) |
private int |
getNumReplicas() |
void |
setup() |
private void |
setupSnapshotAndUpdateTable() |
void |
tearDown() |
void |
testRecoverWithRestoreAclFlag() |
void |
testRecoveryAndDoubleExecution() |
void |
testRestoreSnapshot() |
void |
testRestoreSnapshotToDifferentTable() |
void |
testRestoreSnapshotToEnabledTable() |
private void |
validateSnapshotRestore() |
cleanupTest, getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag, setupCluster
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected final org.apache.hadoop.hbase.TableName snapshotTableName
protected final byte[] CF1
protected final byte[] CF2
protected final byte[] CF3
protected final byte[] CF4
protected final int rowCountCF1
protected final int rowCountCF2
protected final int rowCountCF3
protected final int rowCountCF4
protected final int rowCountCF1addition
private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot
private org.apache.hadoop.hbase.HTableDescriptor snapshotHTD
public org.junit.rules.TestName name
public TestRestoreSnapshotProcedure()
public void setup() throws Exception
setup
in class TestTableDDLProcedureBase
Exception
public void tearDown() throws Exception
tearDown
in class TestTableDDLProcedureBase
Exception
private int getNumReplicas()
private void setupSnapshotAndUpdateTable() throws Exception
Exception
private static org.apache.hadoop.hbase.HTableDescriptor createHTableDescriptor(org.apache.hadoop.hbase.TableName tableName, byte[]... family)
public void testRestoreSnapshot() throws Exception
Exception
public void testRestoreSnapshotToDifferentTable() throws Exception
Exception
public void testRestoreSnapshotToEnabledTable() throws Exception
Exception
public void testRecoveryAndDoubleExecution() throws Exception
Exception
public void testRecoverWithRestoreAclFlag() throws Exception
Exception
private void validateSnapshotRestore() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.