-
Notifications
You must be signed in to change notification settings - Fork 545
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
Mimir query engine: support query cancellation and timeout #8197
Mimir query engine: support query cancellation and timeout #8197
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.
Nice work! This was easy to review.
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, but can we test for errQueryClosed and errQueryFinished?
ab6180d
to
a41284a
Compare
Testing for Testing for |
…er evaluation finishes
) * Add support for cancelling queries. * Respect the configured query timeout. * Update changelog entry * Use `storage.ErrSeriesSet` * Ensure we don't leak contexts * Check for context cancellation in `Selector.Next` * Add test case to ensure that query execution context is cancelled after evaluation finishes
What this PR does
This PR adds support for cancelling queries (with
Query.Cancel()
) and configuring a timeout for queries (withEngineOpts.Timeout
) in the Mimir query engine.Which issue(s) this PR fixes or relates to
(none)
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.