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: Wrap errors from pushing to ingesters #3307

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Oct 25, 2022

What this PR does

In the distributor component, wrap errors stemming from calling the push gRPC method on ingesters, making sure to maintain result status codes. If an errors stems from a timeout, that gets turned into an httpgrpc error with status code 500 and a specific message.

I hope this will be useful in diagnosing write requests timing out in the ingester component (e.g. due to CPU starvation).

Which issue(s) this PR fixes or relates to

Fixes #3214

Checklist

  • Tests updated
  • [na] Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@aknuds1 aknuds1 force-pushed the chore/distributor-wrap-push-error branch 3 times, most recently from a62715f to 4be2147 Compare October 26, 2022 08:57
@aknuds1 aknuds1 changed the title WIP: distributor: Wrap errors from pushing to ingesters distributor: Wrap errors from pushing to ingesters Oct 26, 2022
@aknuds1 aknuds1 force-pushed the chore/distributor-wrap-push-error branch from 4be2147 to 56905ef Compare October 26, 2022 09:01
@aknuds1 aknuds1 marked this pull request as ready for review October 26, 2022 09:02
@aknuds1 aknuds1 requested a review from a team as a code owner October 26, 2022 09:02
@aknuds1 aknuds1 added the enhancement New feature or request label Oct 26, 2022
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 force-pushed the chore/distributor-wrap-push-error branch from 56905ef to ad98691 Compare October 26, 2022 14:51
@aknuds1 aknuds1 force-pushed the chore/distributor-wrap-push-error branch from 174fea7 to f7cec83 Compare October 27, 2022 07:24
@aknuds1 aknuds1 requested review from Logiraptor and a team October 27, 2022 07:25
@aknuds1 aknuds1 merged commit 1dd0732 into main Oct 27, 2022
@aknuds1 aknuds1 deleted the chore/distributor-wrap-push-error branch October 27, 2022 14:48
masonmei pushed a commit to udmire/mimir that referenced this pull request Nov 4, 2022
* distributor: Wrap errors from pushing to ingesters
* distributor: Return httpgrpc error on timeout

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
masonmei pushed a commit to udmire/mimir that referenced this pull request Nov 4, 2022
* distributor: Wrap errors from pushing to ingesters
* distributor: Return httpgrpc error on timeout

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Distributor: Wrap errors from pushing to ingesters
2 participants