-
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.
[BACKPORT 2.18][#17972] CDCSDK: Add guards around updating invalid ch…
…eckpoints during snapshot phase Summary: Original commit: 54ecf5d / D26526 To support resuming of snapshot on connectors using a stream created in explicit mode, we will add snapshot_op_id and snapshot_time to each snapshot record. Additionally, when we initiate the snapshot process for colocated table, we need to copy over the checkpoint details from the first table's snapshot row to the colocated streaming row. To ensure we are doing this only for the first table, we were looking at the "snapshot_time" field of the streaming row , now instead we check to see if the checkpoint of the streaming row in 0.0. This is needed as a consequence of change: https://phorge.dev.yugabyte.com/D26526, where we stopped updating the checkpoint of the streaming row when a snapshot is done. Jira: DB-7038 Test Plan: ybd --cxx-test integration-tests_cdcsdk_snapshot-test --gtest_filter CDCSDKYsqlTest.TestCheckpointUpdatedDuringSnapshot Reviewers: vkushwaha, aagarwal Reviewed By: vkushwaha Subscribers: ycdcxcluster Differential Revision: https://phorge.dev.yugabyte.com/D26664
- Loading branch information
Adithya Bharadwaj
committed
Jul 6, 2023
1 parent
aa98b17
commit 0c56693
Showing
3 changed files
with
14 additions
and
33 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