In [[filter.event-filters]], with "rename" DDLs the matcher
is filtered based on the new name rather than old name
#11946
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
area/ticdc
Issues or PRs related to TiCDC.
found/gs
type/bug
The issue is confirmed as a bug.
What did you do?
Create 3 tables:
Create a changefeed with configuration:
cdc cli changefeed create --sink-uri='file:///tmp/test-cdc-storage?protocol=canal-json' --config=cfg.toml -c xxx
Perform the following renames:
What did you expect to see?
As explained in https://docs.pingcap.com/tidb/stable/ticdc-ddl#ddl-replication-considerations-for-renaming-tables, since
filter.rules
is looking at the old name, we expectfilter.event-filters[].matcher
is also looking at the old name too. That means the downstream should ignore the first two renames and only replicate the last.What did you see instead?
The
filter.event-filters[].matcher
rule actually looks at the new name, so instead the first two DDLs are replicated while the last one is ignored.Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):v8.5.0
Upstream TiKV version (execute
tikv-server --version
):v8.5.0
TiCDC version (execute
cdc version
):v8.5.0
The text was updated successfully, but these errors were encountered: