Package org.apache.hadoop.hbase.backup
Class TestIncrementalBackupWithContinuous
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupBase
org.apache.hadoop.hbase.backup.TestIncrementalBackupWithContinuous
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestIncrementalBackupWithContinuous
extends TestBackupBase
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.backup.TestBackupBase
TestBackupBase.FullTableBackupClientForTest, TestBackupBase.IncrementalTableBackupClientForTest -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate static final intFields inherited from class org.apache.hadoop.hbase.backup.TestBackupBase
autoRestoreOnFailure, BACKUP_REMOTE_ROOT_DIR, BACKUP_ROOT_DIR, conf1, conf2, famName, NB_ROWS_IN_BATCH, provider, qualName, secure, table1, table1_restore, table1Desc, table2, table2_restore, table3, table3_restore, table4, TEST_UTIL, TEST_UTIL2, useSecondCluster -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidlistFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, org.apache.hadoop.fs.Path dir) protected static voidloadTable(org.apache.hadoop.hbase.client.Table table) protected static voidloadTables(List<org.apache.hadoop.hbase.client.Table> tables) private voidperformBulkLoad(String keyPrefix, String testDir, org.apache.hadoop.hbase.TableName tableName) voidvoidvoidprivate voidverifyRestoredTableDataIntegrity(org.apache.hadoop.hbase.TableName restoredTableName, String originalTableChecksum, int expectedRowCount) Methods inherited from class org.apache.hadoop.hbase.backup.TestBackupBase
backupTables, backupTables, checkFailed, checkSucceeded, createBackupRequest, createBackupRequest, createBackupRequest, createTables, deleteContinuousBackupReplicationPeerIfExists, dumpBackupDir, fullTableBackup, getBackupAdmin, getLatestBackupManifest, getListOfWALFiles, incrementalTableBackup, insertIntoTable, setUp, setUpHelper, tearDown, toList
-
Field Details
-
LOG
-
ROWS_IN_BULK_LOAD
- See Also:
-
backupWalDirName
- See Also:
-
fs
-
-
Constructor Details
-
TestIncrementalBackupWithContinuous
public TestIncrementalBackupWithContinuous()
-
-
Method Details
-
beforeTest
- Throws:
IOException
-
afterTest
- Throws:
IOException
-
testContinuousBackupWithIncrementalBackupSuccess
- Throws:
Exception
-
testMultiTableContinuousBackupWithIncrementalBackupSuccess
- Throws:
Exception
-
testIncrementalBackupCopyingBulkloadTillIncrCommittedWalTs
- Throws:
Exception
-
performBulkLoad
private void performBulkLoad(String keyPrefix, String testDir, org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
listFiles
private static Set<String> listFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, org.apache.hadoop.fs.Path dir) throws IOException - Throws:
IOException
-
loadTable
- Throws:
Exception
-
loadTables
protected static void loadTables(List<org.apache.hadoop.hbase.client.Table> tables) throws Exception - Throws:
Exception
-
verifyRestoredTableDataIntegrity
private void verifyRestoredTableDataIntegrity(org.apache.hadoop.hbase.TableName restoredTableName, String originalTableChecksum, int expectedRowCount) throws Exception - Throws:
Exception
-