-
Notifications
You must be signed in to change notification settings - Fork 284
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(ticdc): update changefeed configuration changefeed-error-stuck-duration correctly #11042
Conversation
Hi @wk989898. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
cdc/owner/feed_state_manager.go
Outdated
@@ -168,6 +168,15 @@ func (m *feedStateManager) Tick(resolvedTs model.Ts, | |||
// `handleAdminJob` returns true means that some admin jobs are pending | |||
// skip to the next tick until all the admin jobs is handled | |||
adminJobPending = true | |||
changefeedErrorStuckDuration := *m.state.GetChangefeedInfo().Config.ChangefeedErrorStuckDuration |
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.
Use util.GetOrZero
to avoid possible nil pointer dereference
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #11042 +/- ##
================================================
- Coverage 57.3966% 57.3879% -0.0088%
================================================
Files 851 851
Lines 125469 125617 +148
================================================
+ Hits 72015 72089 +74
- Misses 48034 48115 +81
+ Partials 5420 5413 -7 |
/ok-to-test |
Please also add an unit test case to cover this change. |
/test all |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asddongmen, CharlesCheung96 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/retest |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #10998
What is changed and how it works?
When changefeed state has changed, reacquiring
changefeed-error-stuck-duration
.feedStateManager
checks for new value aboutchangefeedErrorStuckDuration
everyfeedStateManager.Tick
call so that it can sense the updated value.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
No
Do you need to update user documentation, design documentation or monitoring documentation?
No
Release note