Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TiCDC 创建抽取任务报错Error: [CDC:ErrVersionIncompatible]version is incompatible
【 TiDB Usage Environment】
Test Environment
【 TiDB Version】
$ tiup cluster display calctidb-cluster
Cluster name: calctidb-cluster
Cluster version: v6.0.0
Deploy user: tidb
SSH type: builtin
【 cdc Version】
$ 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 Version】
CentOS Linux release 7.8.2003 (Core)
【 tiup Version】
[tidb@ptidbcalcmanage01 ~]$ tiup --version
1.10.2 tiup
Go Version: go1.18.3
Git Ref: v1.10.2
GitHash: 2de5b500c9fae6d418fa200ca150b8d5264d6b19
【Encountered Problem】
Creating a TiCDC sync task in TiDB version 5.0.0 results in the following error:
Error: [CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
Upgrading TiDB to version 6.0.0 in offline mode and creating a TiCDC sync task still results in the same error:
Error: [CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
【Reproduction Path】
1: Upgraded both the TiDB cluster and tiup components when the error occurred.
2: The same error persisted, so I scaled down the CDC node and then scaled it up again. Concerned that TiCDC might have retained information from the TiDB 5.0 version, I reinstalled it.
【Problem Phenomenon and Impact】
TiCDC node log information
[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
github.com/pingcap/errors.AddStack
github.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174
github.com/pingcap/errors.(*Error).GenWithStackByArgs
github.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164
github.com/pingcap/tiflow/pkg/version.CheckStoreVersion
github.com/pingcap/tiflow/pkg/version/check.go:178
github.com/pingcap/tiflow/pkg/version.CheckClusterVersion
github.com/pingcap/tiflow/pkg/version/check.go:74
github.com/pingcap/tiflow/cdc.(*Server).Run
github.com/pingcap/tiflow/cdc/server.go:184
github.com/pingcap/tiflow/pkg/cmd/server.(*options).run
github.com/pingcap/tiflow/pkg/cmd/server/server.go:149
github.com/pingcap/tiflow/pkg/cmd/server.NewCmdServer.func1
github.com/pingcap/tiflow/pkg/cmd/server/server.go:297
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.2.1/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.2.1/command.go:974
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.2.1/command.go:902
github.com/pingcap/tiflow/pkg/cmd.Run
github.com/pingcap/tiflow/pkg/cmd/cmd.go:50
main.main
./main.go:22
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1571”]
【Create Task Command】
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