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

remote_storage/abs: count 404 and 304 for get as ok for metrics #9912

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

VladLazar
Copy link
Contributor

Problem

We currently see elevated levels of errors for GetBlob requests. This is because 404 and 304 are counted as errors for metric reporting.

Summary of Changes

Bring the implementation in line with the S3 client and treat 404 and 304 responses as ok for metric purposes.

Related: https://github.com/neondatabase/cloud/issues/20666

Problem

We currently see elevated levels of errors for GetBlob requests.
This is because 404 and 304 are counted as errors for metric reporting.

Summary of Changes

Bring the implementation in line with the S3 client and treat 404 and
304 responses as ok for metric purposes.
@VladLazar VladLazar requested a review from a team as a code owner November 27, 2024 15:28
@VladLazar VladLazar requested review from arssher and arpad-m and removed request for arssher November 27, 2024 15:28
Copy link

github-actions bot commented Nov 27, 2024

6967 tests run: 6659 passed, 0 failed, 308 skipped (full report)


Flaky tests (1)

Postgres 17

Code coverage* (full report)

  • functions: 30.6% (7980 of 26062 functions)
  • lines: 48.6% (63341 of 130456 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
ff1dc52 at 2024-11-28T10:21:57.889Z :recycle:

@VladLazar VladLazar enabled auto-merge November 28, 2024 09:51
@VladLazar VladLazar added this pull request to the merge queue Nov 28, 2024
Merged via the queue into main with commit e82f7f0 Nov 28, 2024
82 checks passed
@VladLazar VladLazar deleted the vlad/abs-treat-404-304-ok branch November 28, 2024 10:12
awarus pushed a commit that referenced this pull request Dec 5, 2024
## Problem

We currently see elevated levels of errors for GetBlob requests. This is
because 404 and 304 are counted as errors for metric reporting.

## Summary of Changes

Bring the implementation in line with the S3 client and treat 404 and
304 responses as ok for metric purposes.

Related: neondatabase/cloud#20666
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.

2 participants