Class TestBackupCommands
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupBase
org.apache.hadoop.hbase.backup.impl.TestBackupCommands
@Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestBackupCommands
extends TestBackupBase
-
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 TypeMethodDescriptionvoidvoidTests whether determineWALCleanupCutoffTime returns the correct FULL backup start timestamp.voidprivate static voidverifyCleanupOutcome(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path backupWalDir, long currentTime, long cutoffTime) Methods inherited from class org.apache.hadoop.hbase.backup.TestBackupBase
backupTables, backupTables, checkFailed, checkSucceeded, createBackupRequest, createBackupRequest, createBackupRequest, createTables, dumpBackupDir, fullTableBackup, getBackupAdmin, getListOfWALFiles, incrementalTableBackup, loadTable, setUp, setUpHelper, tearDown, toList
-
Field Details
-
backupWalDirName
-
-
Constructor Details
-
TestBackupCommands
public TestBackupCommands()
-
-
Method Details
-
testDetermineWALCleanupCutoffTimeOfCleanupCommand
Tests whether determineWALCleanupCutoffTime returns the correct FULL backup start timestamp.- Throws:
IOException
-
testUpdateBackupTableStartTimesOfCleanupCommand
- Throws:
IOException
-
testDeleteOldWALFilesOfCleanupCommand
- Throws:
IOException
-
verifyCleanupOutcome
private static void verifyCleanupOutcome(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path backupWalDir, long currentTime, long cutoffTime) throws IOException - Throws:
IOException
-