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-37507] Fix MySQL CDC accidentally captures common-prefix database when scan.binlog.newly-added-table is enabled #3957

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yuxiqian
Copy link
Contributor

This closes FLINK-37507.

Currently, MySQL CDC pipeline connector will accidentally capture database that should have been excluded from capture RegExp list when scan.binlog.newly-added-table option is enabled.

For example, tables: db.\.* will also include all tables in databases like dbnew (with the same common prefix db), which is unexpected.

Copy link
Contributor

@lvyanquan lvyanquan left a comment

Choose a reason for hiding this comment

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

LGTM.

@lvyanquan
Copy link
Contributor

PTAL @leonardBang.

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.

+1

…ase when `scan.binlog.newly-added-table` is enabled

# Conflicts:
#	flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/test/java/org/apache/flink/cdc/connectors/mysql/source/MySqlSourceTestBase.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants