Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiCDC get changefeeds api does not work well. #5837

Closed
asddongmen opened this issue Jun 13, 2022 · 0 comments · Fixed by #5838
Closed

TiCDC get changefeeds api does not work well. #5837

asddongmen opened this issue Jun 13, 2022 · 0 comments · Fixed by #5838
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. component/api HTTP API. severity/minor type/bug The issue is confirmed as a bug.

Comments

@asddongmen
Copy link
Contributor

What did you do?

  1. start a cdc server
  2. create a changefeed named "test1"
  3. pause changefeed "test1"
  4. kill and restart cdc server
    4.curl -X GET "http://127.0.0.1:8300/api/v1/changefeeds/test1"

What did you expect to see?

{
    "namespace": "default",
    "id": "test1",
    "sink_uri": "blackhole://",
    "create_time": "2022-06-13 10:04:55.204",
    "start_ts": 433870836907376641,
    "resolved_ts": 433870842556317698,
    "target_ts": 0,
    "checkpoint_tso": 433870842294173698,
    "checkpoint_time": "2022-06-13 10:05:15.734",
    "sort_engine": "unified",
    "state": "normal",
    "error": null,
    "error_history": null,
    "creator_version": "",
    "task_status": [ ]
}%

### What did you see instead?

```log
{
    "error_msg": "[CDC:ErrChangeFeedNotExists]changefeed not exists, {default test1}",
    "error_code": "CDC:ErrChangeFeedNotExists"
}%

### Versions of the cluster

Upstream TiDB cluster version (execute `SELECT tidb_version();` in a MySQL client):

```console
(paste TiDB cluster version here)

Upstream TiKV version (execute tikv-server --version):

(paste TiKV version here)

TiCDC version (execute cdc version):

master branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. component/api HTTP API. severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant