Skip to content

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

Open
SungJin1212 wants to merge 1 commit into
masterfrom
querier-grpc-canceled-maps-to-499
Open

map gRPC codes.Cancled to 499, not 500 in querier#7738
SungJin1212 wants to merge 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
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.

1 participant