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 query priority throws 5xx when 4xx #5704

Merged
merged 2 commits into from
Dec 9, 2023

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Dec 9, 2023

What this PR does:

When a query fails to be parsed in query priority, we return parse error and the error will be converted to 5xx server error.
This pr changes the code to forward the request to querier instead and let it returns 4xx error.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

Signed-off-by: Ben Ye <[email protected]>
@yeya24
Copy link
Contributor Author

yeya24 commented Dec 9, 2023

Verified locally again, merging

@yeya24 yeya24 merged commit 74a75c7 into cortexproject:master Dec 9, 2023
14 checks passed
@yeya24 yeya24 deleted the fix-priority-4xx branch December 9, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants