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

pageserver: fix a warning on secondary mode downloads after evictions #7877

Merged
merged 2 commits into from
May 28, 2024

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented May 24, 2024

Problem

In 4ce6e2d we added a warning when progress stats don't look right at the end of a secondary download pass.

This Correcting drift in progress stats warning fired in staging on a pageserver that had been doing some disk usage eviction.

The impact is low because in the same place we log the warning, we also fix up the progress values.

Summary of changes

  • When we skip downloading a layer because it was recently evicted, update the progress stats to ensure they still reach a clean complete state at the end of a download pass.
  • Also add a log for evicting secondary location layers, for symmetry with attached locations, so that we can clearly see when eviction has happened for a particular tenant's layers when investigating issues.

This is a point fix -- the code would also benefit from being refactored so that there is some "download result" type with a Skip variant, to ensure that we are updating the progress stats uniformly for those cases.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

@jcsp jcsp added t/bug Issue Type: Bug c/storage/pageserver Component: storage: pageserver labels May 24, 2024
@jcsp jcsp changed the title Jcsp/secondary eviction progress pageserver: fix a warning on secondary mode downloads after evictinos May 24, 2024
@jcsp jcsp changed the title pageserver: fix a warning on secondary mode downloads after evictinos pageserver: fix a warning on secondary mode downloads after evictions May 24, 2024
Copy link

3132 tests run: 3005 passed, 0 failed, 127 skipped (full report)


Flaky tests (1)

Postgres 16

  • test_pageserver_restarts_under_worload: release

Code coverage* (full report)

  • functions: 31.4% (6449 of 20537 functions)
  • lines: 48.3% (49935 of 103304 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
e32889f at 2024-05-24T15:31:43.639Z :recycle:

@jcsp jcsp marked this pull request as ready for review May 24, 2024 16:22
@jcsp jcsp requested a review from a team as a code owner May 24, 2024 16:22
@jcsp jcsp requested a review from arpad-m May 24, 2024 16:22
@jcsp jcsp merged commit 352b08d into main May 28, 2024
58 of 62 checks passed
@jcsp jcsp deleted the jcsp/secondary-eviction-progress branch May 28, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/storage/pageserver Component: storage: pageserver t/bug Issue Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants