-
Notifications
You must be signed in to change notification settings - Fork 816
Ruler: Prevent counting 2xx responses as failed writes #6785
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
Conversation
510ea18
to
6d385d4
Compare
What would be the error in this case? If it returns an error then it sounds indeed an error. Maybe there is something wrong when returning the error and the error is wrapped with a 2XX not 5XX |
Just for posterity, the error is |
Distributor returns a 202 + error like I mentioned. We still should not increment this as a write failure on the ruler because distributor returned a 202. Hence this change. If there are other/better ways to fix this, let's discuss |
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.
I think this makes sense as we already ignore 4xx as failure
Signed-off-by: Anand Rajagopal <[email protected]>
6d385d4
to
fd780ea
Compare
Signed-off-by: Anand Rajagopal <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
What this PR does:
In some cases, the Distributor returns a 2xx with error. On the ruler side, this causes
failedWrites
to be incremented. This PR preventsfailedWrites
counter from being incremented in cases where the distributor returns a 2xx with an error