Skip to content

Commit

Permalink
[PLAT-15519]: Update xCluster sync to remove tables from YBA DB
Browse files Browse the repository at this point in the history
Summary: Updated xCluster sync to remove tables from YBA DB if table is removed from replication group and do not check it presence on source universe tables.

Test Plan:
Tested manually by dropping the table on target universe and verified that tables is listed as Extra table on source if it still exists on source universe.
Tested on both DR and Non-DR replications.

Reviewers: hzare, cwang, sanketh

Reviewed By: hzare, cwang

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D38529
  • Loading branch information
vipul-yb committed Oct 2, 2024
1 parent 4e36b78 commit 254c979
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ private Set<String> getTableIdsToRemove(
if (tableIdsInReplication.contains(tableId)) {
return false;
}
// Exclude tables that are still present in the source universe.
if (sourceUniverseTableIds.contains(tableId)) {
return false;
}
// Exclude tables that have no associated xClusterTableConfig or have a null
// streamId.
Optional<XClusterTableConfig> xClusterTableConfig =
Expand Down

0 comments on commit 254c979

Please sign in to comment.