Questions about ticdc changefeed removal

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

Original topic: ticdc changefeed remove 疑问

| username: ShawnYan

【TiDB Usage Environment】POC
【TiDB Version】6.1.0
【Encountered Problem】
【Reproduction Path】What operations were performed to encounter the problem
【Problem Phenomenon and Impact】
Known:
cdc cli changefeed remove will delete the task, and if force is added, it will forcibly delete all information.

Question:
After removal, will the changefeed be retained for a period of time? How long is it retained? Where can I find the deleted changefeed?
(The cdc server log can be checked, but I want to know how to check it using cdc commands)

| username: xiaohetao | Original post link

List all targets: tiup cdc changefeed list --pd=http://xxxx:2379 to check if the remover is still there.

| username: ShawnYan | Original post link

The list can only show active items; removed items cannot be viewed.

| username: ShawnYan | Original post link

Additionally, list -a does not show the removed ones either.

$ cdc cli changefeed list
[
  {
    "id": "task1",
    "summary": {
      "state": "normal",
      "tso": 434096474877329410,
      "checkpoint": "2022-06-23 10:10:35.732",
      "error": null
    }
  },
  {
    "id": "task2",
    "summary": {
      "state": "normal",
      "tso": 434096474877329410,
      "checkpoint": "2022-06-23 10:10:35.732",
      "error": null
    }
  }
]
$ cdc cli changefeed remove -c task2
$ cdc cli changefeed list
[
  {
    "id": "task1",
    "summary": {
      "state": "normal",
      "tso": 434096479609028610,
      "checkpoint": "2022-06-23 10:10:53.782",
      "error": null
    }
  }
]
$ cdc cli changefeed list -a
[
  {
    "id": "task1",
    "summary": {
      "state": "normal",
      "tso": 434096480133316610,
      "checkpoint": "2022-06-23 10:10:55.782",
      "error": null
    }
  }
]
| username: neilshen | Original post link

In version 6.1.0, the cdc cli changefeed remove command will forcibly delete all information even without the force option. Once removed, the deleted changefeed can no longer be seen.

| username: ShawnYan | Original post link

So, does that mean force doesn’t actually have any effect?

| username: neilshen | Original post link

Yes, the --force parameter is no longer effective.

| username: ShawnYan | Original post link

Thank you

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.