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 |
testRecoveryAndDoubleExecution() |
void |
testRestoreSnapshot() |
void |
testRestoreSnapshotToDifferentTable() |
void |
testRestoreSnapshotToEnabledTable() |
private void |
validateSnapshotRestore() |
cleanupTest, getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag, setupClusterpublic 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 TestTableDDLProcedureBaseExceptionpublic void tearDown() throws Exception
tearDown in class TestTableDDLProcedureBaseExceptionprivate int getNumReplicas()
private void setupSnapshotAndUpdateTable() throws Exception
Exceptionprivate static org.apache.hadoop.hbase.HTableDescriptor createHTableDescriptor(org.apache.hadoop.hbase.TableName tableName, byte[]... family)
public void testRestoreSnapshot() throws Exception
Exceptionpublic void testRestoreSnapshotToDifferentTable() throws Exception
Exceptionpublic void testRestoreSnapshotToEnabledTable() throws Exception
Exceptionpublic void testRecoveryAndDoubleExecution() throws Exception
Exceptionprivate void validateSnapshotRestore() throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.