Package org.apache.hadoop.hbase.backup
Class TestHBackupFileSystem
java.lang.Object
org.apache.hadoop.hbase.backup.TestHBackupFileSystem
@Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestHBackupFileSystem
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidassertMarkerAndDataRemain(String backupRootDir, org.apache.hadoop.hbase.backup.BackupInfo info) private static org.apache.hadoop.hbase.backup.BackupInfocreateBackupWithMarkerAndData(String backupRootDir, String backupId) private static org.apache.hadoop.conf.ConfigurationvoidvoidtestDeleteBackupCompleteMarker(Path tempDir) voidvoidvoidtestGetAllBackupImagesSkipsTmpDir(Path tempDir) voidvoid
-
Field Details
-
ROOT_DIR
-
BACKUP_ID
- See Also:
-
-
Constructor Details
-
TestHBackupFileSystem
public TestHBackupFileSystem()
-
-
Method Details
-
testRootDirManifestPathConversion
- Throws:
IOException
-
testGetAllBackupImagesSkipsTmpDir
- Throws:
IOException
-
testWriteBackupCompleteMarkerFailsGracefully
@Test public void testWriteBackupCompleteMarkerFailsGracefully(@TempDir Path tempDir) throws IOException - Throws:
IOException
-
testDeleteBackupCompleteMarker
- Throws:
IOException
-
testDeleteBackupCompleteMarkerFailureThrows
@Test public void testDeleteBackupCompleteMarkerFailureThrows(@TempDir Path tempDir) throws IOException - Throws:
IOException
-
testBackupDataCleanupAbortsWhenMarkerDeleteFails
@Test public void testBackupDataCleanupAbortsWhenMarkerDeleteFails(@TempDir Path tempDir) throws IOException - Throws:
IOException
-
testFailedBackupRecoveryAbortsBeforeDestructiveStepsWhenMarkerDeleteFails
@Test public void testFailedBackupRecoveryAbortsBeforeDestructiveStepsWhenMarkerDeleteFails(@TempDir Path tempDir) throws IOException - Throws:
IOException
-
createBackupWithMarkerAndData
private static org.apache.hadoop.hbase.backup.BackupInfo createBackupWithMarkerAndData(String backupRootDir, String backupId) throws IOException - Throws:
IOException
-
assertMarkerAndDataRemain
private static void assertMarkerAndDataRemain(String backupRootDir, org.apache.hadoop.hbase.backup.BackupInfo info) throws IOException - Throws:
IOException
-
createMarkerDeletionFailConf
-