Package org.apache.hadoop.hbase.backup
Class TestBackupRestoreOnEmptyEnvironment
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupRestoreOnEmptyEnvironment
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.fs.Path
static final HBaseClassTestRule
private static org.apache.hadoop.hbase.testing.TestingHBaseCluster
private static final byte[]
private static final org.slf4j.Logger
boolean
private org.apache.hadoop.hbase.TableName
private org.apache.hadoop.hbase.TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private String
backup
(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) static void
private void
createTable
(org.apache.hadoop.hbase.TableName tableName) data()
private void
private void
void
private void
restore
(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) void
setUp()
void
void
private void
validateDataEquals
(org.apache.hadoop.hbase.TableName tableName, String expectedData)
-
Field Details
-
LOG
-
CLASS_RULE
-
restoreToOtherTable
-
sourceTable
-
targetTable
-
cluster
-
BACKUP_ROOT_DIR
-
COLUMN_FAMILY
-
-
Constructor Details
-
TestBackupRestoreOnEmptyEnvironment
public TestBackupRestoreOnEmptyEnvironment()
-
-
Method Details
-
data
-
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
-