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

Question ask: How to know the changefeed task is completed? #166

Closed
mahjonp opened this issue Dec 10, 2019 · 1 comment
Closed

Question ask: How to know the changefeed task is completed? #166

mahjonp opened this issue Dec 10, 2019 · 1 comment

Comments

@mahjonp
Copy link

mahjonp commented Dec 10, 2019

I'm going to bench the performance of CDC. I populate some data into the upstream TiDB cluster and after it's finished, I run cdc cli, and get some info like:

create changefeed detail &{SinkURI:root@tcp(127.0.0.1:3306)/test Opts:map[] CreateTime:2019-12-09 21:11:09.219849281 -0500 EST m=+0.017868850 StartTs:413114580074496000 TargetTs:0 Info:<nil>}

The sync task is running on cli server, so How do I know data is synced?

@amyangfei
Copy link
Contributor

Add a ctrl command in #169
We can start a changefeed with a target-ts, and check the checkpoint-ts of replication status of this changefeed by

➜  ./bin/cdc ctrl --cmd=query-cf-status --changefeed-id=a2339fed-d360-4726-bd42-f2f0c08daa44
{"sink-uri":"root@tcp(127.0.0.1:3306)/test","resolved-ts":413128531400720385,"checkpoint-ts":413128528739696641}

@mahjonp mahjonp closed this as completed Dec 11, 2019
amyangfei pushed a commit to amyangfei/tiflow that referenced this issue May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants