Skip to content

remote: consider storage.ErrTooOldSample as non-retryable by returning 400#13335

Merged
bboreham merged 1 commit intoprometheus:mainfrom
nmdanny:patch-1
Jan 4, 2024
Merged

remote: consider storage.ErrTooOldSample as non-retryable by returning 400#13335
bboreham merged 1 commit intoprometheus:mainfrom
nmdanny:patch-1

Conversation

@nmdanny
Copy link
Copy Markdown
Contributor

@nmdanny nmdanny commented Dec 26, 2023

Too old samples now yield 400 instead of 500 errors, when using the out of order feature, to line up with the RW specification regarding retry behavior.

Fixes #13334

Signed-off-by: Daniel Kerbel <nmdanny@gmail.com>
@nmdanny nmdanny changed the title remote: consider storage.ErrTooOldSample as non-retryable by returning 404 remote: consider storage.ErrTooOldSample as non-retryable by returning 400 Dec 31, 2023
@bboreham
Copy link
Copy Markdown
Member

bboreham commented Jan 4, 2024

Ideally you would add a test for this condition, but in the interests of getting it fixed we can do that as a follow-up.

@bboreham bboreham merged commit 6d2e0a7 into prometheus:main Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RW - wrong status code for storage.ErrTooOldSample (out of order time window feature)

3 participants