-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Changed logic of handling RPC error with code Cancelled #5297
Changed logic of handling RPC error with code Cancelled #5297
Conversation
…r with code 'Cancelled' happened. it's made to allow loki to retry the request to the querier instead of returning '499 The request was cancelled by the client.' back to the client.
Please make sure to include a section in the upgrade guide regarding this change; this is a change to an external interface, and could cause some unexpected behaviour for users. |
done. |
@dannykopping the bug was introduce before we release it. So we're fixing it back to how it was. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ah, my bad |
05d22d4
to
95c58a8
Compare
@cyriltovena @owen-d @dannykopping could somebody please merge it |
…r with code 'Cancelled' happened. it's made to allow loki to retry the request to the querier instead of returning '499 The request was cancelled by the client.' back to the client. (grafana#5297)
What this PR does / why we need it:
changed logic to respond with '500 Internal Server Error' if RPC error with code 'Cancelled' happened. it's made to allow Loki to retry the request to the querier instead of returning '499 The request was canceled by the client.' back to the client.
Which issue(s) this PR fixes:
Fixes #4991
Special notes for your reviewer:
Checklist
CHANGELOG.md
about the changes.