-
Notifications
You must be signed in to change notification settings - Fork 289
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
new_owner: a feed state manager for owner #1826
Conversation
func (m *feedStateManager) handleAdminJob() (pendingJobs bool) { | ||
job := m.popAdminJob() | ||
if job == nil || job.CfID != m.state.ID { | ||
return false |
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.
Panic or Warn here?
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.
I think it's not necessary, we can just skip the invalid admin job.
Co-authored-by: Zixiong Liu <[email protected]> Co-authored-by: Lonng <[email protected]>
…_owner_feed_manager
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.
do we need change all // Copyright 2020 PingCAP, Inc.
to // Copyright 2021 PingCAP, Inc.
cdc/model/changefeed.go
Outdated
@@ -56,13 +57,13 @@ const ( | |||
// ErrorHistoryGCInterval represents how long we keep error record in changefeed info | |||
ErrorHistoryGCInterval = time.Minute * 10 | |||
|
|||
// errorHistoryCheckInterval represents time window for failure check | |||
errorHistoryCheckInterval = time.Minute * 2 | |||
// ErrorHistoryCheckInterval represents time window for failure check |
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.
is it just me, but prefix with Error
kind like a error const
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.
rest lgtm
Co-authored-by: Zixiong Liu <[email protected]>
/lgtm |
[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 writing |
/looks gtm |
/merge |
/run-kafka-tests |
2 similar comments
/run-kafka-tests |
/run-kafka-tests |
/run-all-tests |
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: c94210e
|
Codecov Report
@@ Coverage Diff @@
## master #1826 +/- ##
================================================
+ Coverage 53.4083% 54.1216% +0.7132%
================================================
Files 154 159 +5
Lines 16166 16644 +478
================================================
+ Hits 8634 9008 +374
- Misses 6608 6678 +70
- Partials 924 958 +34 |
In response to a cherrypick label: new pull request created: #1881. |
In response to a cherrypick label: new pull request created: #1882. |
What problem does this PR solve?
the feed state manager: responsible for changefeed lifecycle management, start, stop, etc. read error report by the processor; handle admin jobs; retry and backoff changefeed....
What is changed and how it works?
Check List
Tests
Release note