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: split interval function should return 4xx #6608

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

afhassan
Copy link
Contributor

What this PR does:
Split interval function could return an error in three cases

  • Query parsing error
  • Query analyzer error
  • Error retrieving tenant userId

Since all of these should be 4xx, the current behaviour of returning 5xx is wrong.

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: Ahmed Hassan <afayekhassan@gmail.com>
@yeya24 yeya24 merged commit 72f03ab into cortexproject:master Feb 26, 2025
17 checks passed
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.

2 participants