-
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.
Browse files
Browse the repository at this point in the history
…d xmin for a replication slot from the CDC state table Summary: The values of confirm_flush, restart_lsn and xmin for a replication slot were hardcoded to dummy values in earlier revisions. For reference, see https://phorge.dev.yugabyte.com/D31997 This revision updates the logic to fetch them from the CDC state table. CDC state table stores these entries for every replication slot. This support was added recently as part of https://phorge.dev.yugabyte.com/D32643. Note that the values are still going to 0 for all of them till we support consumption of changes via the Replication Slot. As a result, the output of the view `pg_replication_slots` is still always 0 for these fields. These values are incremented during the consumption of changes via the replication slot which is a WIP. Also, as part of this revision, I've deprecated the `GetReplicationSlotStatus` RPC of pg_client_service. This is because this RPC is a strict subset of the `GetReplicationSlot` RPC. So this additional RPC doesn't add much value. As part of the deprecation, I've replaced the usage of `GetReplicationSlotStatus` with `GetReplicationSlot`. **Upgrade/Rollback safety:** The proto changes are just reordering of code. The complete feature is disabled using the test flag: `ysql_TEST_enable_replication_slot_consumption` Jira: DB-9729, DB-10133 Test Plan: Existing tests are enough to ensure no behavior change. Tests ensuring these values are correctly incremented will be added once the support for consumption of changes is complete. The main requirement is the logic to call CDC service to persist these values. Reviewers: asrinivasan, aagrawal, skumar Reviewed By: asrinivasan Subscribers: ybase, ycdcxcluster, yql, bogdan Differential Revision: https://phorge.dev.yugabyte.com/D32729
- Loading branch information
Showing
24 changed files
with
178 additions
and
123 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
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
Oops, something went wrong.