Skip to content
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

Handle context.Canceled in active series requests #7102

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

flxbk
Copy link
Contributor

@flxbk flxbk commented Jan 11, 2024

What this PR does

The invocation of the active series ingesterQuery through forReplicationSet can be canceled via its context if the quorum has been established otherwise. In these cases, we should not return an error from ingesterQuery.

Which issue(s) this PR fixes or relates to

Fixes n/a

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the cleanup

@flxbk flxbk force-pushed the felix/active-series-context-canceled branch from 99f6681 to 29ba882 Compare January 11, 2024 10:44
Copy link
Contributor

@colega colega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@flxbk flxbk marked this pull request as ready for review January 11, 2024 11:02
@flxbk flxbk requested a review from a team as a code owner January 11, 2024 11:02
@flxbk flxbk merged commit cc3a1b3 into main Jan 11, 2024
28 checks passed
@flxbk flxbk deleted the felix/active-series-context-canceled branch January 11, 2024 11:05
grafanabot pushed a commit that referenced this pull request Jan 11, 2024
* Handle context.Canceled errors in callback for `forReplicationSet`

(cherry picked from commit cc3a1b3)
flxbk added a commit that referenced this pull request Jan 11, 2024
* Handle context.Canceled errors in callback for `forReplicationSet`

(cherry picked from commit cc3a1b3)

Co-authored-by: Felix Beuke <felix.j.beuke@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants