debezium / debezium/dbz

Remove table from table.whitelist does not work after add new table to table.whitelist [DBZ-1195]

Open
#209 0 comments 0 reactions 0 assignees View on GitHub
component/mysql-connector migrated-from-jira type/bug
Dominant language
HTML
Stars
6
Forks
9
Avg merge
2d 19h
Merged PRs (30d)
1

Description

Migrated from [DBZ-1195](https://issues.redhat.com/browse/DBZ-1195)

Hello, I have a problem when remove the new table or any table from table_whitelist of connector after I changed (add a new table) to table.whitelist, it does not work!

I attached debug from the line, I saw it always using the old value of table_whitelist from connector offset:

https://github.com/debezium/debezium/blob/9b405aa84d8391a7ccf883184d6e8c67bac8bed3/debezium-connector-mysql/src/main/java/io/debezium/connector/mysql/SourceInfo.java#L304

Seems the `databaseWhitelist` always use the value of connector offset at init.

Contributor guide

Open the contributing guide

Research direction

Start in debezium-connector-mysql/src/main/java/io/debezium/connector/mysql/SourceInfo.java at the referenced line. Trace how databaseWhitelist is initialized from the connector offset and how table.whitelist changes are handled afterward. Confirm the behavior with the MySQL connector configuration flow; done means removing a table after adding it no longer uses the stale whitelist value.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mysql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.