yugabyte/yugabyte-db

[Platform] Create library methods in yb-client to support xCluster Async Replication

atarw opened this issue · 0 comments

atarw commented

Create request/response classes as well as functions in YBClient to support the required operations:

  • Return all async replication relationships that were created on a universe’s tables, given the universe UUID.
  • Create a new async replication relationship between two tables (if one does not already exist), given UUIDs for the source universe, source table, target universe and target table. (Prerequisites: schemas should be the same, backup and restore must be done on target if necessary)
  • Set async replication between two tables to be either active or inactive, given the UUID for the relationship object.
  • Delete the async replication relationship between two tables, given the UUID of the relationship object.

Note: work will need to be done to keep the table up to date, e.g. as per #8477 if a full move of the source universe is done, this table will likely need to be updated (along with the CDC stream information) to ensure async replication still functions as expected.