Uses of Class
org.apache.hadoop.hbase.backup.impl.BackupSystemTable
-
Uses of BackupSystemTable in org.apache.hadoop.hbase.backup.impl
Modifier and TypeMethodDescriptionprivate void
BackupAdminImpl.checkIfValidForMerge
(String[] backupIds, BackupSystemTable table) Verifies that backup images are valid for merge.private int
BackupAdminImpl.deleteBackup
(String backupId, BackupSystemTable sysTable) Delete single backup and all related backups
Algorithm:
Backup type: FULL or INCREMENTAL
Is this last backup session for table T: YES or NO
For every table T from table list 'tables':
if(FULL, YES) deletes only physical data (PD)
if(FULL, NO), deletes PD, scans all newer backups and removes T from backupInfo,
until we either reach the most recent backup for T in the system or FULL backup
which includes T
if(INCREMENTAL, YES) deletes only physical data (PD) if(INCREMENTAL, NO) deletes physical data and for table T scans all backup images between last
FULL backup, which is older than the backup being deleted and the next FULL backup (if exists)
or last one for a particular table T and removes T from list of backup tables.private void
BackupAdminImpl.finalizeDelete
(List<String> backupRoots, BackupSystemTable table) Updates incremental backup set for every backupRootprivate List<BackupInfo>
BackupAdminImpl.getAffectedBackupSessions
(BackupInfo backupInfo, TableName tn, BackupSystemTable table) private boolean
BackupAdminImpl.isLastBackupSession
(BackupSystemTable table, TableName tn, long startTime) private void
BackupAdminImpl.removeTableFromBackupImage
(BackupInfo info, TableName tn, BackupSystemTable sysTable) private void
BackupCommands.RepairCommand.repairFailedBackupDeletionIfAny
(Connection conn, BackupSystemTable sysTable) static void
BackupCommands.RepairCommand.repairFailedBackupMergeIfAny
(Connection conn, BackupSystemTable sysTable)