Package org.apache.hadoop.hbase.backup
Class TestBackupRestoreOnEmptyEnvironment
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupRestoreOnEmptyEnvironment
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestBackupRestoreOnEmptyEnvironment
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.fs.Pathprivate static org.apache.hadoop.hbase.testing.TestingHBaseClusterprivate static final byte[]private static final org.slf4j.Loggerbooleanprivate org.apache.hadoop.hbase.TableNameprivate org.apache.hadoop.hbase.TableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate Stringbackup(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) static voidprivate voidcreateTable(org.apache.hadoop.hbase.TableName tableName) private voidstatic Stream<org.junit.jupiter.params.provider.Arguments>private voidvoidprivate voidrestore(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) voidsetUp()voidvoidprivate voidvalidateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData)
-
Field Details
-
LOG
-
restoreToOtherTable
-
sourceTable
-
targetTable
-
cluster
-
BACKUP_ROOT_DIR
-
COLUMN_FAMILY
-
-
Constructor Details
-
TestBackupRestoreOnEmptyEnvironment
-
-
Method Details
-
parameters
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
removeTables
- Throws:
Exception
-
testRestoreToCorrectTable
- Throws:
Exception
-
testRestoreCorrectTableForIncremental
- Throws:
Exception
-
createTable
- Throws:
IOException
-
deleteTables
- Throws:
IOException
-
putLoad
private void putLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
IOException
-
backup
private String backup(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) throws IOException - Throws:
IOException
-
restore
private void restore(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws IOException - Throws:
IOException
-
validateDataEquals
private void validateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData) throws IOException - Throws:
IOException
-