Package | Description |
---|---|
org.apache.hadoop.hbase.backup.impl |
Modifier and Type | Field and Description |
---|---|
protected BackupSystemTable |
BackupManager.systemTable |
Modifier and Type | Method and Description |
---|---|
private 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(Map<String,HashSet<TableName>> tablesMap,
BackupSystemTable table)
Updates incremental backup set for every backupRoot
|
private 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) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.