-
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-15278]: Fix DB Scoped XCluster replication restart
Summary: We had 2 issues in restarting the xCluster DB scoped replication. # After restarting the whole xCluster, the table was no longer in replication. **Issue**: The task was removing the tables from the replication but it skipped the step where it was supposed to add as it thought we already had the namespace in a replication setup. **Resolution**: We would update the namespace config with status updating, allowing the addition of a namespace in replication. If the task fails, we will mark the namespace config with updating status as false and if all namespace config is in failed status then, we will mark the xCluster config in the failed state too. # Support restart of the partial database in DB Scoped replication **Issue**: Task only handled the restart of the whole DB Scoped replication. **Resolution:** Added the changes where we add selective database and add them back in the replication. Also, Enabled testDbScopedRestart local provider test. Test Plan: Tested manually by creating a DB scoped replication and performing whole and partial database restart. Verified that task succeeded and master UI displays all tables/namespace in replication and compare streamId. Reviewers: hzare, cwang, sanketh Reviewed By: hzare, cwang Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D38208
- Loading branch information
Showing
6 changed files
with
95 additions
and
33 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
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