kill tidb [session id]
can't stop executors and release resources
#9831
Labels
sig/execution
SIG execution
Feature Request
Is your feature request related to a problem? Please describe:
When users want to cancel a SQL, they may use
kill tidb [session id]
.But it can't stop executors since executors don't watch the
ctx
used to cancel the session and the cancelled session don't callexecutor.Close()
to stop them.So after
kill tidb
, these executors will continue to consume resources to do their job.Describe the feature you'd like:
Background executors should be stopped quickly after
kill tidb
.The text was updated successfully, but these errors were encountered: