tiflow icon indicating copy to clipboard operation
tiflow copied to clipboard

Config `case-sensitive` Not affecting eventFilter.

Open asddongmen opened this issue 1 year ago • 2 comments

What did you do?

  1. create a changefeed with config as fllow:
case-sensitive = false
[filter]
rules = ['test.t']
[[filter.event-filters]]
matcher = ['test.t'] 
ignore-event = ["delete"] # filter out delete event of table `test.t` 
  1. Delele a row of test.T in upstream TiDB.

What did you expect to see?

TiCDC ignores the DELETE event.

What did you see instead?

TiCDC replicated the DELETE event.

Versions of the cluster

Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

Upstream TiKV version (execute tikv-server --version):

(paste TiKV version here)

TiCDC version (execute cdc version):

master

asddongmen avatar Sep 06 '24 03:09 asddongmen

The root cause of this issue is that the eventFilter is not affected by the case-sensitive = false config, which contradicts the official documentation: https://arc.net/l/quote/hyfhxvkb

asddongmen avatar Sep 06 '24 03:09 asddongmen

Will only fix in the new release version, starting from v9.0. For previous version, we can workaround by exact match.

flowbehappy avatar Aug 26 '25 03:08 flowbehappy

Will only fix in the new release version, starting from v9.0. For previous version, we can workaround by exact match.

Fixed in new TiCDC: https://github.com/pingcap/ticdc/pull/1810, close it.

wlwilliamx avatar Aug 28 '25 06:08 wlwilliamx