Skip to content

map gRPC codes.Cancled to 499, not 500 in querier - #7738

Merged
SungJin1212 merged 1 commit into
masterfrom
querier-grpc-canceled-maps-to-499
Jul 31, 2026
Merged

map gRPC codes.Cancled to 499, not 500 in querier#7738
SungJin1212 merged 1 commit into
masterfrom
querier-grpc-canceled-maps-to-499

Conversation

@SungJin1212

Copy link
Copy Markdown
Member

Fix gRPC codes.Canceled errors being mapped to HTTP 500 instead of 499 when a client cancels a query in querier.
This caused CortexRequestErrors alerts to fire falsely on the querier's cortex_request_duration_seconds metric.

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]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@SungJin1212
SungJin1212 force-pushed the querier-grpc-canceled-maps-to-499 branch from 20cbcae to 49baead Compare July 30, 2026 03:02

@friedrichg friedrichg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 30, 2026
@SungJin1212
SungJin1212 merged commit a164c70 into master Jul 31, 2026
74 of 75 checks passed
@SungJin1212
SungJin1212 deleted the querier-grpc-canceled-maps-to-499 branch July 31, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/querier lgtm This PR has been approved by a maintainer size/S type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants