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

Make chunk and series limit error messages returned by store-gateways consistent with those returned by queriers #6347

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Oct 12, 2023

What this PR does

At present, if a query request to a store-gateway selects enough series or chunks to hit the max series or chunks limit, it returns an error message like rpc error: code = Code(422) desc = exceeded chunks limit: rpc error: code = Code(422) desc = limit 30 exceeded.

However, if the same limit is hit in a querier, it returns a much more helpful error like the query exceeded the maximum number of chunks (limit: 30 chunks) (err-mimir-max-chunks-per-query). Consider reducing the time range and/or number of series selected by the query. One way to reduce the number of selected series is to add more label matchers to the query. Otherwise, to adjust the related per-tenant limit, configure -querier.max-fetched-chunks-per-query, or contact your service administrator.

This PR changes the behaviour of store-gateways to return the same error message as queriers.

Which issue(s) this PR fixes or relates to

(none)

Checklist

  • Tests updated
  • [n/a] Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@charleskorn charleskorn force-pushed the charleskorn/store-gateway-error-consistency branch from 373249e to 636f390 Compare October 12, 2023 03:04
@charleskorn charleskorn marked this pull request as ready for review October 12, 2023 03:37
@charleskorn charleskorn requested a review from a team as a code owner October 12, 2023 03:37
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

@charleskorn charleskorn enabled auto-merge (squash) October 13, 2023 02:17
@charleskorn charleskorn merged commit 231d362 into main Oct 13, 2023
28 checks passed
@charleskorn charleskorn deleted the charleskorn/store-gateway-error-consistency branch October 13, 2023 02:34
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.

2 participants