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

cdc changefeed error,the ticdc_processor_exit_with_error_count value equal 0 #11914

Open
Xuma0512 opened this issue Dec 20, 2024 · 3 comments
Assignees
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.2 affects-7.3 affects-7.4 affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-7.6 affects-8.0 affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.2 affects-8.3 affects-8.4 affects-8.5 This bug affects the 8.5.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. component/metrics-logging Metrics and logging component. severity/minor type/bug The issue is confirmed as a bug.

Comments

@Xuma0512
Copy link

Xuma0512 commented Dec 20, 2024

What did you do?

  1. tidb version : 6.5.11
  2. create changefeed :task-test
  3. drop a table on the downstream tidb cluster
  4. view the changefeed,changefeed error is found 。
  5. view granfana ticdc->changefeed->exit error ,no changefeed found
    Image

What did you expect to see?

ticdc.ticdc_processor_exit_with_error_count alert is found.

What did you see instead?

none

Versions of the cluster

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

| Release Version: v7.5.0
Edition: Community
Git Commit Hash: 069631e2ecfedc000ffb92c67207bea81380f020
Git Branch: heads/refs/tags/v7.5.0
UTC Build Time: 2023-11-24 08:50:14
GoVersion: go1.21.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv |

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

6.5.11

TiCDC version (execute cdc version):

6.5.11
@Xuma0512 Xuma0512 added area/ticdc Issues or PRs related to TiCDC. type/bug The issue is confirmed as a bug. labels Dec 20, 2024
@Xuma0512 Xuma0512 changed the title cdc changefeed 报错后,ticdc_processor_exit_with_error_count指标一直0 cdc changefeed error,the ticdc_processor_exit_with_error_count value equal 0 Dec 20, 2024
@3AceShowHand 3AceShowHand self-assigned this Dec 20, 2024
@3AceShowHand 3AceShowHand added severity/minor component/metrics-logging Metrics and logging component. labels Dec 20, 2024
@3AceShowHand
Copy link
Contributor

This also on the master branch

@3AceShowHand 3AceShowHand added affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.2 affects-7.3 affects-7.4 affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-7.6 affects-8.0 affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.2 affects-8.3 affects-8.5 This bug affects the 8.5.x(LTS) versions. affects-8.4 labels Dec 20, 2024
@3AceShowHand
Copy link
Contributor

This can be reproduced by the following steps:

1. create one mysql sink changefeed
2. sync some data to the downstream database
3. drop the table on the downstream database

You can observe that the changefeed report error since the table cannot be found, and trigger processor exit logic, at this step, the metrics ticdc_processor_exit_with_error_count is deleted, and then rebuild the processor with new metrics, so that the metrics panel is always 0.

@3AceShowHand
Copy link
Contributor

At the moment, processor level metrics are deleted with the processor exit, we can fix the issue by don't delete such metric, but here comes another question, when to delete the metric ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.2 affects-7.3 affects-7.4 affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-7.6 affects-8.0 affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.2 affects-8.3 affects-8.4 affects-8.5 This bug affects the 8.5.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. component/metrics-logging Metrics and logging component. severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants