In TiDB version 4.0.13, reusing a previously used changefeed-id when creating a CDC task will result in an error, even though the task has already been removed. The details are as follows:
The changefeed-id=cdc-122-kafka-maxwell-json was previously used as an id name and later removed. Now, reusing this id name results in the following error, but using a different id does not cause an error.
Additionally, there is another issue. Although there are no CDC tasks in the current cluster, there are still alerts related to latency. I would like to inquire about the reason for this phenomenon. When deleting a CDC task, besides executing the remove operation (without specifying --force), is there anything else that needs to be cleaned up?
Could you please restart the CDC cluster? If possible, please restart it. I had some residual monitoring issues before, and restarting the CDC resolved them.
The cdc remove command will not immediately delete the information. You can try using tiup cdc:xxx cli changefeed remove -c xxxx --pd=xxxxx --force when deleting.
There should be some residue in etcd. Deleting the task will have a read-only status. You should be able to see this changefeed with the CLI query (without -s). Let me test if I can delete this. In version 5.4.1, I deleted it directly. Let me look for the bug.
You can refer to the following link for specific usage:
Read-only commands are fine, but other commands are not recommended as they can easily cause issues with the cluster. You can use the above command to check if there is any residual information.
Currently, it is like this. I haven’t seen a solution on the issue yet. For now, resolving the safe point this way is fine. You can also directly modify etcd, but it might bring other issues to the cluster. Therefore, restarting is a relatively safe approach for now.
It should not be an occasional issue. I have encountered it several times, but I did not encounter it when testing version 5.4. You can follow up on the issue mentioned above. However, it should not have a significant impact on usage.