Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
atarw opened this issue Jun 28, 2021 · 0 comments
Assignees
Labels
area/platform Yugabyte Platform
Milestone

Comments

@atarw
Copy link
Contributor

atarw commented Jun 28, 2021

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.

@atarw atarw added the area/platform Yugabyte Platform label Jun 28, 2021
@atarw atarw self-assigned this Jun 28, 2021
@hsu880 hsu880 modified the milestones: 2.2.7, 2.7.x Jul 2, 2021
atarw added a commit that referenced this issue Jul 30, 2021
…deleting/getting xCluster replication relationships

Summary:
- Added methods to AsyncYBClient and YBClient to create, alter, delete, get, and enable/disable xCluster replication relationships, as well as to bootstrap a universe
- Added request/response classes for the above functions

Test Plan: Tested by temporarily modifying endpoints created in D12227 to call the corresponding functions to ensure no errors occurred

Reviewers: daniel, rahuldesirazu

Reviewed By: daniel, rahuldesirazu

Differential Revision: https://phabricator.dev.yugabyte.com/D12299
@atarw atarw closed this as completed Jul 30, 2021
atarw added a commit that referenced this issue Aug 9, 2021
…ter replication

Summary: Currently, only [[ https://github.com/yugabyte/yugabyte-db/blob/master/ent/src/yb/master/catalog_manager_ent.cc#L3423 | one alteration is supported for xCluster alteration requests ]] (i.e. must exclusively add tables, remove tables, or change master addresses). We modify the YBClient/AsyncYBClient interfaces to reflect that

Test Plan: N/A no changes to functionality

Reviewers: daniel

Reviewed By: daniel

Differential Revision: https://phabricator.dev.yugabyte.com/D12477
radekg pushed a commit to radekg/yugabyte-db that referenced this issue Aug 12, 2021
…ng xCluster replication

Summary: Currently, only [[ https://github.com/yugabyte/yugabyte-db/blob/master/ent/src/yb/master/catalog_manager_ent.cc#L3423 | one alteration is supported for xCluster alteration requests ]] (i.e. must exclusively add tables, remove tables, or change master addresses). We modify the YBClient/AsyncYBClient interfaces to reflect that

Test Plan: N/A no changes to functionality

Reviewers: daniel

Reviewed By: daniel

Differential Revision: https://phabricator.dev.yugabyte.com/D12477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform Yugabyte Platform
Projects
None yet
Development

No branches or pull requests

2 participants