-
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
owner: ignore the invalid admin jobs #600
Conversation
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.
Could you add a test?
@@ -143,6 +145,9 @@ func newQueryChangefeedCommand() *cobra.Command { | |||
taskStatus = append(taskStatus, captureTaskStatus{CaptureID: captureID, TaskStatus: status}) | |||
} | |||
meta := &cfMeta{Info: info, Status: status, Count: count, TaskStatus: taskStatus} | |||
if info == nil { | |||
log.Warn("this changefeed has been deleted, the residual meta data will be completely deleted within 24 hours.") |
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.
How do we test it if it is get deleted after 24 hours?
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 will add a unit test for it
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.
PTAL again
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
/run-integration-tests |
/run-integration-tests |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #600 +/- ##
================================================
+ Coverage 33.3333% 33.4335% +0.1002%
================================================
Files 74 74
Lines 7626 7651 +25
================================================
+ Hits 2542 2558 +16
- Misses 4902 4905 +3
- Partials 182 188 +6 |
What problem does this PR solve?
fix #541 #542.(3)
ignore and warn the invalid admin jobs.
if users remove the changefeed, the owner will delete the changefeed info immediately and set 24h TTL to the changefeed status.
the CDC CLI will report a warning to tall users the changefeed has been deleted.
What is changed and how it works?
Check List
Tests
Release note