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

distributor, ruler: expect METHOD_NOT_ALLOWED from pusher #7645

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

narqo
Copy link
Contributor

@narqo narqo commented Mar 18, 2024

What this PR does

Following #7618, after a follow-up discussion, it makes sense to have an explicit mapping from ingester's METHOD_NOT_ALLOWED to an HTTP 5xx.

cc @pstibrany @pracucci

Which issue(s) this PR fixes or relates to

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.

@narqo narqo requested review from a team as code owners March 18, 2024 10:57
@narqo narqo force-pushed the distributor-ingester-dont-push-grpc branch from ef1e123 to b19b8aa Compare March 18, 2024 11:02
Copy link
Member

@pstibrany pstibrany 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!

Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM

Can you do the mapping in mapPushErrorToErrorWithHTTPOrGRPCStatus() and mapPushErrorToErrorWithStatus() too, please? It's not required today, but METHOD_NOT_ALLOWED is a generic error we may reuse in the future for other reasons and it should be mapped consistently with other ingester errors.

@narqo narqo force-pushed the distributor-ingester-dont-push-grpc branch from b19b8aa to 0ec1cfb Compare March 18, 2024 15:15
@narqo narqo force-pushed the distributor-ingester-dont-push-grpc branch from 0ec1cfb to bf9a19d Compare March 18, 2024 16:53
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks! 👏

@pracucci pracucci merged commit c0038b1 into main Mar 18, 2024
29 checks passed
@pracucci pracucci deleted the distributor-ingester-dont-push-grpc branch March 18, 2024 17:53
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