-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl: add ddl job error count limit, exceed the limit should cancel the ddl job #9295
Conversation
3b5a097
to
4948905
Compare
/run-all-tests |
9552519
to
3050725
Compare
Codecov Report
@@ Coverage Diff @@
## master #9295 +/- ##
=========================================
- Coverage 67.4% 67.4% -0.01%
=========================================
Files 373 373
Lines 78544 78564 +20
=========================================
+ Hits 52946 52956 +10
- Misses 20838 20847 +9
- Partials 4760 4761 +1
Continue to review full report at Codecov.
|
/run-all-tests |
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.
LGTM
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.
LGTM
} | ||
} | ||
return nil | ||
return true |
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.
It seems some DDL jobs don't support rollback, and the function returns true. Do we need to wait for other DDL jobs support rollback?
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.
Mostly ddl rollback is supported.
Please address comments. |
/run-all-tests |
/run-all-tests |
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.
LGTM
What problem does this PR solve?
Add DDL job error count limit, if do job error count exceed the limit, and the job is cancelable, then cancel the DDL job to avoid falling into an infinite loop.
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes