Skip to content

2.25.0.0-b29

@charleswang234 charleswang234 tagged this 23 Sep 18:56
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
Assets 2
Loading