Package org.apache.hadoop.hbase.backup
Class TestBackupDelete
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupBase
org.apache.hadoop.hbase.backup.TestBackupDelete
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestBackupDelete
extends TestBackupBase
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.backup.TestBackupBase
TestBackupBase.FullTableBackupClientForTest, TestBackupBase.IncrementalTableBackupClientForTest -
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidVerify that full backup is created on a single table with data correctly.voidVerify that full backup is created on a single table with data correctly.voidVerify that if the completion marker cannot be removed, then the backup delete fails before removing the backup's data or its system table record.voidVerify that backup deletion updates the incremental-backup-set.voidMethods 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, loadTable, setUp, setUpHelper, tearDown, toList
-
Field Details
-
LOG
-
-
Constructor Details
-
TestBackupDelete
public TestBackupDelete()
-
-
Method Details
-
testBackupDelete
Verify that full backup is created on a single table with data correctly. Verify that history works as expected.- Throws:
Exception- if doing the backup or an operation on the tables fails
-
testBackupDeleteFailsWhenMarkerDeleteFails
Verify that if the completion marker cannot be removed, then the backup delete fails before removing the backup's data or its system table record. Also verify retrying the backup delete succeeds.- Throws:
Exception- if doing the backup or an operation on the tables fails
-
testBackupDeleteCommand
Verify that full backup is created on a single table with data correctly. Verify that history works as expected.- Throws:
Exception- if doing the backup or an operation on the tables fails
-
testBackupPurgeOldBackupsCommand
- Throws:
Exception
-
testBackupDeleteUpdatesIncrementalBackupSet
Verify that backup deletion updates the incremental-backup-set.- Throws:
Exception
-