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

Some metrics are not up to date in some scenarios #1310

Closed
2 tasks done
amyangfei opened this issue Jan 18, 2021 · 0 comments · Fixed by #1312
Closed
2 tasks done

Some metrics are not up to date in some scenarios #1310

amyangfei opened this issue Jan 18, 2021 · 0 comments · Fixed by #1312
Labels
area/ticdc Issues or PRs related to TiCDC. priority/P1 The issue has P1 priority. type/bug The issue is confirmed as a bug.
Milestone

Comments

@amyangfei
Copy link
Contributor

amyangfei commented Jan 18, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

    1. start two cdc servers
    2. create a new changefeed, with only one table replicated
    3. change cdc owner via http api
    4. pause changefeed
    5. resume changefeed
    6. query the ticdc_processor_num_of_tables metric of both cdc servers
  2. What did you expect to see?

    There exists only one table count in ticdc_processor_num_of_tables of two cdc servers

  3. What did you see instead?

➜  curl -s http://127.0.0.1:8300/metrics |grep num_of_tables
# HELP ticdc_processor_num_of_tables number of synchronized table of processor
# TYPE ticdc_processor_num_of_tables gauge
ticdc_processor_num_of_tables{capture="127.0.0.1:8300",changefeed="test-cf"} 1

➜  curl -s http://127.0.0.1:8302/metrics |grep num_of_tables
# HELP ticdc_processor_num_of_tables number of synchronized table of processor
# TYPE ticdc_processor_num_of_tables gauge
ticdc_processor_num_of_tables{capture="127.0.0.1:8302",changefeed="test-cf"} 1
  1. Versions of the cluster

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

      v4.0.10
      
    • TiCDC version (execute cdc version):

      v4.0.10
      
  2. Known abnormal metrics

    • ticdc_processor_num_of_tables
    • ticdc_processor_table_resolved_ts
@amyangfei amyangfei added the type/bug The issue is confirmed as a bug. label Jan 18, 2021
@amyangfei amyangfei added this to the v4.0.11 milestone Jan 18, 2021
@amyangfei amyangfei added the priority/P1 The issue has P1 priority. label Jan 19, 2021
@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. priority/P1 The issue has P1 priority. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants