-
Notifications
You must be signed in to change notification settings - Fork 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.16][#20428] CDCSDK: Fix addition of new tables to stream …
…metadata after drop table Summary: Original commit: 201fda8 / D31577 Backport Description: Had minor merge conflicts in test files **Problem**: After a table is dropped, state of cdcsdk stream changes from ACTIVE to DELETING_METADATA and remains in this state forever. For dynamic table addition, stream is required to be in the ACTIVE state. Due to this requirement, new tables created after drop table do not get added to stream metadata & cdc_state table **Fix**: In the dynamic table addition codepath, in addition to ACTIVE streams, also consider streams in DELETING_METADATA state. Primary diff for Dynamic table addition : [[ https://phorge.dev.yugabyte.com/D19909 |https://phorge.dev.yugabyte.com/D19909 ]] New test: Added UTs to verify addition of newly created tables after drop table in normal functioning as well as master restart. Added a test flag `cdcsdk_skip_processing_dynamic_table_addition` for testing master restart case. This flag will skip the finding & processing of newly added tables by background thread. Refer the primary diff for dynamic table addition for more details on master restart. Jira: DB-9428 Test Plan: Jenkins: test regex: .*CDCSDK* Reviewers: asrinivasan, skumar, stiwary Reviewed By: stiwary Subscribers: ycdcxcluster, bogdan Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D31651
- Loading branch information
1 parent
22a6cb9
commit d2093e2
Showing
3 changed files
with
212 additions
and
19 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