-
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-14944] Enable db scoped replication if runtime config is enabled
Summary: Removed dependence on `dbScoped` in `DrConfigCreateForm` when hitting `POST /customers/:cUUID/dr_configs` CREATE endpoint. We now depend only on the runtime config `yb.xcluster.db_scoped.enabled` to determine whether to be db scoped when creating a new DR config. This runtime config is now at universe level. When the source universe's runtime config `yb.xcluster.db_scoped.creationEnabled` is set as true, we will try to create a db scoped replication. Test Plan: Added UTs to test the following: 1. `yb.xcluster.db_scoped.creationEnabled` = false globally. Then non-db scoped DR is created 2. `yb.xcluster.db_scoped.creationEnabled` = false on source universe and `yb.xcluster.db_scoped.creationEnabled`= true on target universe. Non-db scoped DR is created. 3. `yb.xcluster.db_scoped.creationEnabled` = true on source universe and `yb.xcluster.db_scoped.creationEnabled` = false on target universe. Db Scoped DR is created. Local provider tests pass Reviewers: jmak, hzare, sanketh Reviewed By: hzare Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D37948
- Loading branch information
1 parent
8916c1d
commit b4a0b45
Showing
8 changed files
with
135 additions
and
73 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
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