Description
Backup delete modified file system and backup system table. We have to make sure that operation is atomic, durable and isolated.
Delete operation:
- Start backup session (this guarantees) that system will be blocked for all backup commands during delete operation
- Save list of tables being deleted to system table
- Before delete operation we take backup system table snapshot
- During delete operation we detect any failures and restore backup system table from snapshot, then finish backup session
- To guarantee consistency of the data, delete operation MUST be repeated
- We guarantee that all file delete operations are idempotent, can be repeated multiple times
- Any backup operations will be blocked until consistency is restored
- To restore consistency, repair command must be executed.
- Repair command checks if there is failed delete op in a backup system table, and repeats delete operation
Attachments
Attachments
Issue Links
- relates to
-
HBASE-16197 Enhance backup delete command
- Closed