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

create changfeed using openapi will cause cpu usage overload #3073

Closed
maxshuang opened this issue Oct 15, 2021 · 1 comment
Closed

create changfeed using openapi will cause cpu usage overload #3073

maxshuang opened this issue Oct 15, 2021 · 1 comment
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. component/cli CLI component. severity/critical type/bug The issue is confirmed as a bug.

Comments

@maxshuang
Copy link
Contributor

What did you do?

(1) using a tidb + ticdc cluster using tiup

tiup playground v5.2.0 --pd 3 --db 3 --kv 3 --ticdc 3

(2) using openapi create a changefeed

 curl -X POST -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v1/changefeeds -d '{"changefeed_id":"test-resolvedLock","sink_uri":"mysql://root:123456@127.0.0.1:3306/"}'

What did you expect to see?

changefeed run normally

What did you see instead?

cpu usage up to 600% without any workload

flame graph as follow:
image

Versions of the cluster

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

v5.2.0

TiCDC version (execute cdc version):

v5.2.0
@amyangfei
Copy link
Contributor

Fixed by #3074

@AkiraXie AkiraXie added the area/ticdc Issues or PRs related to TiCDC. label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. component/cli CLI component. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants