-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: allow monitoring and controlling long running queries #7003
Comments
@a6802739 yes this is on the roadmap. |
@petermattis is there a way to link particular issues like this one to our roadmap, so we can update them when we get there? |
@knz Sure, edit the wiki and add a link to the issue. Someone recently did this for common table expressions. |
Tracking progress of schema changes and backup / restore operations is targeted for 1.0. We'll likely have a different mechanism for tracking long running queries. |
Retitling this to target long running queries. See #7554 for the system jobs table. |
@knz , @petermattis any suggestions to start with for this feature, we need this in our production urgently. |
@a6802739 We need to sketch out a design first. In addition to being able to display running queries, we need to be able to cancel them too. Presumably we'd want to be able to show all of the SQL sessions (i.e. connections) and what queries are running on them. |
FWIW #10317 provides a mechanism to inspect currently open sessions on a node. I could complete the PR using the design direction suggested by Andrei (and Ben) in there. The missing piece would be cancellation, but perhaps context cancellation would help us here. |
For |
Original question: will cocoroachdb have plans to support 'watching thread running state' like
show processlist
in mysql.Users should be able to observe progress of long-running operations like online schema changes or large queries; and potentially interrupt operations asynchronously.
The text was updated successfully, but these errors were encountered: