public class TestBackupRestoreOnEmptyEnvironment extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.fs.Path |
BACKUP_ROOT_DIR |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.testing.TestingHBaseCluster |
cluster |
private static byte[] |
COLUMN_FAMILY |
private static org.slf4j.Logger |
LOG |
boolean |
restoreToOtherTable |
private org.apache.hadoop.hbase.TableName |
sourceTable |
private org.apache.hadoop.hbase.TableName |
targetTable |
Constructor and Description |
---|
TestBackupRestoreOnEmptyEnvironment() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
private String |
backup(org.apache.hadoop.hbase.backup.BackupType backupType,
List<org.apache.hadoop.hbase.TableName> tables) |
static void |
beforeClass() |
private void |
createTable(org.apache.hadoop.hbase.TableName tableName) |
static Iterable<Object[]> |
data() |
private void |
deleteTables() |
private void |
putLoad(org.apache.hadoop.hbase.TableName tableName,
Instant timestamp,
String data) |
void |
removeTables() |
private void |
restore(String backupId,
org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.hbase.TableName targetTableName) |
void |
setUp() |
void |
testRestoreCorrectTableForIncremental() |
void |
testRestoreToCorrectTable() |
private void |
validateDataEquals(org.apache.hadoop.hbase.TableName tableName,
String expectedData) |
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
public boolean restoreToOtherTable
private org.apache.hadoop.hbase.TableName sourceTable
private org.apache.hadoop.hbase.TableName targetTable
private static org.apache.hadoop.hbase.testing.TestingHBaseCluster cluster
private static org.apache.hadoop.fs.Path BACKUP_ROOT_DIR
private static final byte[] COLUMN_FAMILY
public TestBackupRestoreOnEmptyEnvironment()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
public void removeTables() throws Exception
Exception
public void testRestoreToCorrectTable() throws Exception
Exception
public void testRestoreCorrectTableForIncremental() throws Exception
Exception
private void createTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private void deleteTables() throws IOException
IOException
private void putLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException
IOException
private String backup(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) throws IOException
IOException
private void restore(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws IOException
IOException
private void validateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.