【 TiDB 使用环境`】
测试环境
【 TiDB 版本】
$ tiup cluster display calctidb-cluster
Cluster name: calctidb-cluster
Cluster version: v6.0.0
Deploy user: tidb
SSH type: builtin
【 cdc 版本】
$ tiup cdc version
tiup is checking updates for component cdc …
Starting component cdc
: /home/tidb/.tiup/components/cdc/v6.1.0/cdc version
** Release Version: v6.1.0**
Git Commit Hash: 9f5e3cea2fae0a3dce6cc5ca79e3bcd654b8aa99
Git Branch: heads/refs/tags/v6.1.0
UTC Build Time: 2022-06-07 11:54:04
Go Version: go version go1.18.2 linux/amd64
Failpoint Build: false
【 OS 版本】
CentOS Linux release 7.8.2003 (Core)
【 tiup 版本】
[tidb@ptidbcalcmanage01 ~]$ tiup --version
1.10.2 tiup
Go Version: go1.18.3
Git Ref: v1.10.2
GitHash: 2de5b500c9fae6d418fa200ca150b8d5264d6b19
【遇到的问题】
在TiDB 5.0.0 版本创建TiCDC同步任务,报如下错误。
Error: [CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
在offline 模式升级TiDB 到6.0.0 版本创建TiCDC同步任务,还是报如下错误。
Error: [CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
【复现路径】
1:报错时候对TiDB集群与tiup组件都进行升级操作。
2:发现还是报同样的错误新,随后将CDC节点缩容后在扩容。担心TiCDC在TiDB 5.0版本创建,保留了就的信息,从新安装了一次。
【问题现象及影响】
TiCDC节点日志信息
[2022/07/08 16:26:44.919 +08:00] [INFO] [server.go:355] ["/data03/cdc-8300 is set as data-dir (1206GB available), sort-dir=/data03/cdc-8300/tmp/sorter. It is recommended that the disk for data-dir at least have 500GB available space"]
[2022/07/08 16:26:44.922 +08:00] [WARN] [check.go:79] [“check TiKV version failed”] [error="[CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha"] [errorVerbose="[CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha\ngithub.com/pingcap/errors.AddStack\
\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\
github.com/pingcap/errors.(*Error).GenWithStackByArgs\
\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\
github.com/pingcap/tiflow/pkg/version.CheckStoreVersion\
\tgithub.com/pingcap/tiflow/pkg/version/check.go:178\
github.com/pingcap/tiflow/pkg/version.CheckClusterVersion\
\tgithub.com/pingcap/tiflow/pkg/version/check.go:74\
github.com/pingcap/tiflow/cdc.(*Server).Run\
\tgithub.com/pingcap/tiflow/cdc/server.go:184\
github.com/pingcap/tiflow/pkg/cmd/server.(*options).run\
\tgithub.com/pingcap/tiflow/pkg/cmd/server/server.go:149\
github.com/pingcap/tiflow/pkg/cmd/server.NewCmdServer.func1\
\tgithub.com/pingcap/tiflow/pkg/cmd/server/server.go:297\
github.com/spf13/cobra.(*Command).execute\
\tgithub.com/spf13/cobra@v1.2.1/command.go:856\
github.com/spf13/cobra.(*Command).ExecuteC\
\tgithub.com/spf13/cobra@v1.2.1/command.go:974\
github.com/spf13/cobra.(*Command).Execute\
\tgithub.com/spf13/cobra@v1.2.1/command.go:902\
github.com/pingcap/tiflow/pkg/cmd.Run\
\tgithub.com/pingcap/tiflow/pkg/cmd/cmd.go:50\
main.main\
\t./main.go:22\
runtime.main\
\truntime/proc.go:250\
runtime.goexit\
\truntime/asm_amd64.s:1571"]
【创建任务命令】
tiup cdc cli changefeed create --pd=http://xxx.xx.3.115:2379 --sink-uri=“kafka:///xxx.xx.8.24:15502,/xxx.xx.8.25:15502,172.18.8.26:15502/t_pay_detail?kafka-version=3.1.0&max-message-bytes=10485760&replication-factor=3” --changefeed-id=“t-pay-detail” --config /home/tidb/cdc-conf/t_pay_detail.toml