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

Fix: Handle context correctly in the querier #3504

Merged

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Aug 19, 2024

selectTree was using the a errgroup context going foward. This caused
some errors when store-gateways were used for queries, that required
deduplication.

This fix also updated all errGroup nested contexts to use gCtx, as an
additional measure we could consider using a block to limit the use
`gCtx` after `Wait()`.
@simonswine simonswine changed the title Fix: Handle context correctly Fix: Handle context correctly in the querier Aug 19, 2024
@simonswine simonswine marked this pull request as ready for review August 19, 2024 16:53
@simonswine simonswine requested a review from a team as a code owner August 19, 2024 16:53
@simonswine
Copy link
Contributor Author

Test coverage would be nice, but as we refactor that bit soon anyhow, it is 🤞 fine

Copy link
Collaborator

@kolesnikovae kolesnikovae left a comment

Choose a reason for hiding this comment

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

LGTM

@aleks-p aleks-p merged commit 398f241 into grafana:main Aug 20, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants