The filter does not work when using TiDB CDC

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB CDC时的filter不起作用。

| username: 泰迪比爱好者

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version] 7.1.0
[Reproduction Path] Operations performed that led to the issue
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]

| username: 泰迪比爱好者 | Original post link

I created a synchronization task as follows: curl -X POST -H “‘Content-type’:‘application/json’” http://IP:8300/api/v2/changefeeds -d ‘{“changefeed_id”:“ticdc1test3”,“sink_uri”:“mysql://root:cisdiinfo2023@IP:4000”,“replica_config”:{“filter”:{“do_dbs”:[“ctest1”]}}}’, with the aim of synchronizing only the ctest1 database. However, in practice, I found that in addition to the data from the ctest1 database, data from the enterprise table was also synchronized. Do I need to do any other configuration? I followed the steps according to the official documentation.

| username: tidb菜鸟一只 | Original post link

Isn’t CDC filtering done using rules = [‘ctest1.*’]?

| username: redgame | Original post link

In the manner of a senior contributor

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.