TiCDC 不报错,不同步数据

【 TiDB 版本】
v7.1.1

配置如下:

# 指定配置文件中涉及的库名、表名是否为大小写敏感
# 该配置会同时影响 filter 和 sink 相关配置,默认为 true
case-sensitive = true

# 是否输出 old value,从 v4.0.5 开始支持,从 v5.0 开始默认为 true
enable-old-value = true

[filter]
# 忽略指定 start_ts 的事务
#ignore-txn-start-ts = [1, 2]

# 过滤器规则
# 过滤规则语法:https://docs.pingcap.com/zh/tidb/stable/table-filter#表库过滤语法
rules = ['xx.*','!xx.xx']

[mounter]
# mounter 线程数,用于解码 TiKV 输出的数据
worker-num = 4

#[sink]
# 对于 MQ 类的 Sink,可以通过 dispatchers 配置 event 分发器
# 支持 partition 及 topic(从 v6.1 开始支持)两种 event 分发器。二者的详细说明见下一节。
# matcher 的匹配语法和过滤器规则语法相同,matcher 匹配规则的详细说明见下一节。
#dispatchers = [
#    {matcher = ['test1.*', 'test2.*'], topic = "Topic 表达式 1", partition = "ts" },
#    {matcher = ['test3.*', 'test4.*'], topic = "Topic 表达式 2", partition = "index-value" },
#    {matcher = ['test1.*', 'test5.*'], topic = "Topic 表达式 3", partition = "table"},
#    {matcher = ['test6.*'], partition = "ts"}
#]

# 对于 MQ 类的 Sink,可以指定消息的协议格式
# 目前支持 canal-json、open-protocol、canal、avro 和 maxwell 五种协议。
# protocol = "canal-json"

tiup cdc:v7.1.1 cli changefeed list --pd=http://192.168.x.x:2379

  {
    "id": "sync-tidb-test",
    "namespace": "default",
    "summary": {
      "state": "normal",
      "tso": 444228768228704256,
      "checkpoint": "2023-09-13 17:44:27.474",
      "error": null
    }
  }

下游是 tidb 集群,检查点一直卡在这个位置,日志里没有报错信息,暂停再开启后又会开始同步

你格式写错了

配置正常使用

已找到问题原因,下游主键冲突,sink 断开,使用 tiup cdc:v7.1.1 cli changefeed list / query 查看无报错信息,修改safe-mode为true避免主键冲突后的不同步

学习了

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。