-
Notifications
You must be signed in to change notification settings - Fork 287
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
owner(cdc): fix two metrics problems #4703
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-integration-tests |
/run-all-tests |
/run-integration-tests |
/run-integration-tests |
/run-integration-tests |
/run-integration-tests |
if !ok { | ||
log.Panic("unreachable", zap.Int64("tableID", tableID)) | ||
} | ||
statusCountEntry[record.Status]-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it underflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other states maintained in TableSet
is sufficient to guarantee that there is no underflow.
/run-integration-tests |
/run-check-issue-triage-complete |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #4703 +/- ##
================================================
- Coverage 55.6402% 55.2746% -0.3657%
================================================
Files 494 518 +24
Lines 61283 64033 +2750
================================================
+ Hits 34098 35394 +1296
- Misses 23750 25146 +1396
- Partials 3435 3493 +58 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: eb6a077
|
/run-kafka-integration-test |
2 similar comments
/run-kafka-integration-test |
/run-kafka-integration-test |
/run-all-tests |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #4729. |
What problem does this PR solve?
Issue Number: close #4714
What is changed and how it works?
util.TableSet
so that reporting the table count metrics will not hinder performance.Check List
Tests
The image below shows that this PR fix both problems. Before this PR, during scheduling (i.e. there are WIP tables), the checkpoint metrics should lack data.
Related changes
Release note