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

[mysql] Use event filter to drop events earlier than the specified timestamp in timestamp startup mode #1724

Merged
merged 2 commits into from
Nov 9, 2022

Conversation

PatrickRen
Copy link
Contributor

@PatrickRen PatrickRen commented Nov 9, 2022

This pull request reworks the logic of timestamp startup mode, which uses a event filter in MySqlBinlogSplitReadTask to drop events earlier than the specified startup timestamp.

Compared to the previous implementation #1661 in which the filter was applied on ChangeEventCreator, the filter is applied right after the binlog event is received, so that the diff in schema will not be complained by Debezium reader under the case that schema change happens before the specified timestamp.

This PR also improves the error message under the case that starting from earliest offset but schema change happened before.

Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

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

Thanks @PatrickRen for the contribution, I left some comments

Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

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

Thanks @PatrickRen for the update, LGTM

Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

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

Thanks @PatrickRen for the update, LGTM

PatrickRen added a commit to PatrickRen/flink-cdc that referenced this pull request Nov 9, 2022
PatrickRen added a commit to PatrickRen/flink-cdc that referenced this pull request Nov 9, 2022
leonardBang pushed a commit that referenced this pull request Nov 9, 2022
leonardBang pushed a commit that referenced this pull request Nov 9, 2022
@leonardBang leonardBang merged commit f2d2b98 into apache:master Nov 9, 2022
leonardBang pushed a commit that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants