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

[FLINK-35128][cdc-connector][cdc-base] Re-calculate the starting changelog offset after the new table added #3230

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

loserwang1024
Copy link
Contributor

@loserwang1024 loserwang1024 commented Apr 17, 2024

In mysql cdc, re-calculate the starting binlog offset after the new table added in MySqlBinlogSplit#appendFinishedSplitInfos, while there lack of same action in StreamSplit#appendFinishedSplitInfos. This will cause data loss if any newly added table snapshot split's high_watermark is smaller.

Some unstable test problem occurs because of it.

@github-actions github-actions bot added the base label Apr 17, 2024
@loserwang1024
Copy link
Contributor Author

@PatrickRen , @morazow , CC

Copy link
Contributor

@morazow morazow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @loserwang1024 for the PR!

I have minor question about choosing highWatermarks.

Copy link
Contributor

@PatrickRen PatrickRen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@loserwang1024 Thanks for the patch! LGTM

@PatrickRen PatrickRen merged commit bdca0e3 into apache:master Apr 25, 2024
13 checks passed
loserwang1024 added a commit to loserwang1024/flink-cdc-connectors that referenced this pull request Apr 25, 2024
…gelog offset after the new table added (apache#3230)

(cherry picked from commit bdca0e3)
PatrickRen pushed a commit that referenced this pull request Apr 26, 2024
wuzhenhua01 pushed a commit to wuzhenhua01/flink-cdc-connectors that referenced this pull request Aug 4, 2024
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants