-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incremental backup and point in time recovery for XtraBackup (#13156)
* incremental backup is always using 'builtin' engine Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * restore: use 'builtin' for incremental restore Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * test all backup types Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * format code Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Populate PurgedPosition Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * cleanup backups at the end of each test case Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * improved cleanup Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * rename variable Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * record all backups Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * no need to cleanup backups in between test cases, since each new case has a completely different UUID Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * install xtrabackup on backup_pitr tests Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * use pgzip for xtrabackup Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * more debug info Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * builtin engine: store gtid_purged in manifest Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * use backupfrom-GTID as incremental-from-GTID if first binary log has empty Previous-GTIDS Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * more unit tests Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * improve error message Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * capturing MySQL's stderr and reading and logging if not empty Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * At the end of Xtrabackup restore, validate that @@gtid_purged (and thereby @@gtid_executed) are set to the backup's @@gtid_purge. Make it so if they aren't Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * add comperssion details into test case. Fix GTID validation of manifest file Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * check manifest Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Refactor into function Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * check manifest.Position.GTIDSet Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * fix wrangler tests Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * typo Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/mysqlctl/backup.go Co-authored-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/mysqlctl/backup.go Co-authored-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/mysqlctl/backup.go Co-authored-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * typo Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/mysqlctl/mysqld.go Co-authored-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/mysqlctl/mysqld.go Co-authored-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/mysqlctl/mysqld.go Co-authored-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --------- Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Co-authored-by: Matt Lord <mattalord@gmail.com>
- Loading branch information
1 parent
4ba60af
commit bd50b93
Showing
13 changed files
with
392 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.