-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-10706][dr] Support retry-ability of failover and switchover
Summary: This diff addresses: - Adds support for retry-ing switchover and failover task upon failure for both txn DR and db-scoped DR. - Adds support for aborting switchover. - Improves the pitr restore task performance. - Improves the failover/switchover task execution time by creating the pitr configs during DR creation. - Fix the create backup and restore subtasks methods to not overwrite the task params of the parent task in case of xCluster. - Add support to ignore errors to the ChangeXClusterRole subtask. Prior to this, the force delete option of the xCluster/DR config could have failed if the target universe was not responsive. - Delete the extra xCluster configs of a DR config during restart. - Fix an issue where the create db-scoped DR config could fail if a pitr config was created before creating the DR config. Test Plan: - Made sure the PITR configs are created as part of the DR config create task on both universes. - Retry works for Failover and Switchover as expected for both txn and db xCluster config types, having one or two DBs in replication: - Add fault injecting in the middle of some critical subtasks and removed it and retried the task. - Randomly aborted the switchover task and made sure the retry works. - Made sure the PITR restore works and it is faster. Reviewers: #yba-api-review!, cwang, vbansal, jmak, sanketh Reviewed By: cwang, vbansal Subscribers: cwang, sanketh, yugaware Differential Revision: https://phorge.dev.yugabyte.com/D37310
- Loading branch information
1 parent
0d53558
commit ffa537e
Showing
53 changed files
with
1,765 additions
and
1,094 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
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.