-
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
executor: add SHUTDOWN command and privilege check #12804
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12804 +/- ##
=========================================
Coverage 80.154% 80.154%
=========================================
Files 465 465
Lines 107609 107609
=========================================
Hits 86253 86253
Misses 14913 14913
Partials 6443 6443 |
… 5046/shutdown-support
/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
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
Thank you @ekalinin |
/run-all-tests |
Fixed all failed tests related to pingcap/parser#581 |
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
/run-all-tests |
@ekalinin merge failed. |
/run-cherry-picker |
cherry pick to release-3.0 failed |
What problem does this PR solve?
Add:
SHUTDOWN
command implementationSHUTDOWN
privilege checkmysql.user
tableFix for #5046 (+ see pingcap/parser#580)
What is changed and how it works?
TiDB now is able to handle
shutdown
command. Also added privilege check for this command.When
shutdown
comes to server it sends to itselfSIGTERM
signal.SIGTERM
signal causes graceful shutdown of the server.At the moment
ekalinin/parser
is used to be able to run tests.Will revert
go.mod / go.sum
when pingcap/parser#580 will be merged.Check List
Tests