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

Only set filter info in offsets when snapshot.new.tables = parallel #1875

Merged
merged 1 commit into from Oct 14, 2020

Conversation

johnjmartin
Copy link
Contributor

@johnjmartin johnjmartin commented Oct 8, 2020

Fixes: https://issues.redhat.com/browse/DBZ-2643

This PR adds a check to maybeSetFilterDataFromConfig for the case where a connector has filter info, but snapshot.new.tables is not set to parallel. In this case we unset the filters.

I'm also updating the MySQLConnectorTask to run maybeSetFilterDataFromConfig in every case where it's picking up from an existing offset, rather than only running the update when offsets are missing filter info.

I've tested this change in our staging environment.

Copy link
Member

@gunnarmorling gunnarmorling left a comment

Choose a reason for hiding this comment

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

LGTM, but I'm not super-deep into the parallel implementation. @mtagle, any thoughts on this one from you perhaps? Thanks a lot!

@mtagle
Copy link
Contributor

mtagle commented Oct 9, 2020

LGTM! This was always the intention but I missed the case where parallel snapshotting would be turned off.

@jpechane jpechane merged commit 4fe4aed into debezium:master Oct 14, 2020
@jpechane
Copy link
Contributor

@johnjmartin Applied, thanks. @mtagle Thanks for the review

@johnjmartin johnjmartin deleted the DBZ-2643 branch October 14, 2020 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants