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

refactor(pageserver): check layer map valid in one place #9051

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

skyzh
Copy link
Member

@skyzh skyzh commented Sep 18, 2024

Problem

We have 3 places where we implement layer map checks.

Summary of changes

Now we have a single check function being called in all places.

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

Signed-off-by: Alex Chi Z <chi@neon.tech>
@skyzh skyzh requested a review from a team as a code owner September 18, 2024 19:08
@skyzh skyzh requested a review from problame September 18, 2024 19:08
Copy link

github-actions bot commented Sep 18, 2024

5020 tests run: 4856 passed, 0 failed, 164 skipped (full report)


Flaky tests (8)

Postgres 17

Postgres 16

Postgres 15

Code coverage* (full report)

  • functions: 31.9% (7423 of 23300 functions)
  • lines: 49.8% (59764 of 119904 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
f8d8f5b at 2024-09-19T20:39:10.603Z :recycle:

Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a bit worried you were thinking of doing this with the prod code, approved with the added cfg(test).

@skyzh
Copy link
Member Author

skyzh commented Sep 19, 2024

I was a bit worried you were thinking of doing this with the prod code, approved with the added cfg(test).

The code is also used in storage-scrubber so it's not test only...

@koivunej
Copy link
Member

koivunej commented Sep 19, 2024

test_layer_download_timeouted: release-x86-64

This looks surprising, I'll peek. You can just re-run failed or push it's unrelated, but I haven't seen this failure mode.

Signed-off-by: Alex Chi Z <chi@neon.tech>
@skyzh skyzh enabled auto-merge (squash) September 19, 2024 19:00
@skyzh skyzh merged commit d0cbfda into main Sep 19, 2024
78 checks passed
@skyzh skyzh deleted the skyzh/refactor-layer-check branch September 19, 2024 20:29
davidgomes pushed a commit that referenced this pull request Sep 21, 2024
We have 3 places where we implement layer map checks.

## Summary of changes

Now we have a single check function being called in all places.

---------

Signed-off-by: Alex Chi Z <chi@neon.tech>
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