Package org.apache.hadoop.hbase.backup
Class TestIncrementalBackupMergeWithBulkLoad
java.lang.Object
org.apache.hadoop.hbase.backup.TestIncrementalBackupMergeWithBulkLoad
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestIncrementalBackupMergeWithBulkLoad
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<org.apache.hadoop.hbase.TableName>private static final org.apache.hadoop.fs.Pathprivate static org.apache.hadoop.hbase.testing.TestingHBaseClusterprivate static final byte[]private static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.TableNameprivate org.apache.hadoop.hbase.TableNameboolean -
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 voidhFileBulkLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) private voidprivate voidstatic Stream<org.junit.jupiter.params.provider.Arguments>private voidvoidsetUp()voidprivate voidvalidateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData)
-
Field Details
-
LOG
-
useBulkLoad
-
sourceTable
-
targetTable
-
allTables
-
cluster
-
BACKUP_ROOT_DIR
-
COLUMN_FAMILY
-
-
Constructor Details
-
TestIncrementalBackupMergeWithBulkLoad
-
-
Method Details
-
parameters
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
testMergeContainingBulkloadedHfiles
- Throws:
Exception
-
createTable
- Throws:
IOException
-
load
private void load(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
IOException
-
putLoad
private void putLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
IOException
-
hFileBulkLoad
private void hFileBulkLoad(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
-
merge
- Throws:
IOException
-
validateDataEquals
private void validateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData) throws IOException - Throws:
IOException
-