Skip to content

TiCDC 同步链路创建命令未加载配置文件,导致Redo Log 功能没有开启 #21576

@wyhui1978

Description

@wyhui1978

File: /release-8.5/replicate-between-primary-and-secondary-clusters.md

原文档中:

在上游集群中,执行以下命令创建从上游到下游集群的同步链路:
tiup cdc cli changefeed create --server=http://172.16.6.122:8300 --sink-uri="mysql://root:@172.16.6.125:4000" --changefeed-id="primary-to-secondary" --start-ts="431434047157698561"

此处未加载前面创建的changefeed.toml文件,导致使用默认的配置项:
"consistent": {
"level": "none",
... ...
}
},

后果就是:
当 level 为 "none" 时,TiCDC 不会向 S3 写入任何 redo log 文件, S3 redo 文件夹一直是空的。

正确命令应该是:
tiup cdc cli changefeed create --server=http://172.16.6.122:8300 --sink-uri="mysql://root:@172.16.6.125:4000" --changefeed-id="primary-to-secondary" --start-ts="431434047157698561" --config=./changefeed.toml

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionThis PR is from a community contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions