TICDC Data Migration Failure

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

Original topic: TICDC 迁移数据失败

| username: L一十二十一

[TiDB Usage Environment] Production Environment / TiDB Cluster V4.0.7 Version TICDC Version: Local installed version: v5.3.0
[TiDB Version]
[Reproduction Path]

  1. Successfully installed CDC via tiup

  2. Failed to create migration task via tiup cdc

[Encountered Problem: Problem Phenomenon and Impact]
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]

[Attempted Solutions]

  1. Checked TiKV version via pd-ctl, all are version 4.0.7
  2. The cluster version has not been upgraded, and no residual nodes were found
  3. Other suggestions: Need to upgrade TiKV version to 5.0.1, which has a significant impact, so it was not attempted

[CDC:ErrVersionIncompatible] version is incompatible: TiKV 4.0.7 is not supported, the minimal compatible version is 5.1.0-alpha

| username: 裤衩儿飞上天 | Original post link

It is best to keep the Ticdc version consistent with the cluster.

| username: L一十二十一 | Original post link

I installed CDC through tiup, and it looks like the versions are inconsistent; can the CDC version be downgraded?

| username: 裤衩儿飞上天 | Original post link

CDC is just a component. After installing with tiup, you can uninstall it using tiup uninstall.
When installing, you can specify the version, e.g., tiup install cdc:v4.0.7.

| username: 裤衩儿飞上天 | Original post link

You can check the specific command parameters with help.

| username: liuis | Original post link

Version inconsistency

| username: L一十二十一 | Original post link

Currently, there are still some TiDB clusters running version 5.2 that use version 5.3 of TiCDC for synchronization. Downgrading to version 4.0.7 of CDC should not support synchronization with version 5.2 clusters either. Based on your previous experience, will upgrading TiDB from version 4.0.7 to 5.1 or 5.2 affect business read and write operations?

| username: 裤衩儿飞上天 | Original post link

  1. Try to keep the cluster and CDC consistent. You can either upgrade the cluster or downgrade the CDC.
  2. During the cluster upgrade process, each node will be restarted one by one, which will have some impact on the business. It’s best to do it during a low business peak period.
| username: 海石花47 | Original post link

This is probably due to the large version gap between ticdc and tikv, causing version incompatibility.

| username: system | Original post link

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