CDC Synchronization Issues

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

Original topic: cdc同步问题

| username: TiDB_老表

[TiDB Usage Environment] Production Environment
[TiDB Version]
tiup ctl:v7.1.1 cdc changefeed create
–server=http://xxx.xxx.xx.xx:xxxx
–sink-uri=“mysql://root:xxxxxxxxxxxxx@xxx.xxx.xx.xx:4000/”
–start-ts=444814113323123123
–changefeed-id=“xxx-xxx-xxx”
–config seed-xxx-xxx-xxx.toml
Error: call cdc api failed, url=http://172.16.215.210:8300/api/v2/verify_table, code=500, contentType=text/html, response=Internal Server Error
Upstream tidb7.1.1 Downstream tidb6.5.0

| username: Billmay表妹 | Original post link

Error message call cdc api failed, url=http://172.16.215.210:8300/api/v2/verify_table, code=500, contentType=text/html, response=Internal Server Error.

This error message indicates that an error occurred during the call to the CDC API, causing the request to fail. Based on the URL http://172.16.215.210:8300/api/v2/verify_table in the error message, it appears that there is an issue with the API interface of the CDC component.

| username: TiDB_老表 | Original post link

Is there any way to pinpoint what the problem is?

| username: Fly-bird | Original post link

Is your CDC status normal? Can you display it for us?

| username: TiDB_老表 | Original post link

Normal

| username: TiDB_老表 | Original post link

[middleware.go:48] [/api/v2/verify_table] [status=500] [method=POST] [path=/api/v2/verify_table] [query=] [ip=172.24.227.112] [user-agent=Go-http-client/1.1] [client-version=v7.1.1] [error=“[CDC:ErrNewStore]new store failed: [pd] unmatched cluster id”] [duration=1m40.126269893s]

| username: Fly-bird | Original post link

Delete the CDC task and recreate it.