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: remove Option<> around remote storage, clean up metadata file refs #7752

Merged
merged 5 commits into from
May 15, 2024

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented May 14, 2024

Problem

This is historical baggage from when the pageserver could be run with local disk only: we had a bunch of places where we had to treat remote storage as optional.

Closes: #6890

Changes

  • Remove Option<> around remote storage (in pageserver: refuse to run without remote storage #7722 we made remote storage clearly mandatory)
  • Remove code for deleting old metadata files: they're all gone now.
  • Remove other references to metadata files when loading directories, as none exist.

I checked last 14 days of logs for "found legacy metadata", there are no instances.

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 c/storage/pageserver Component: storage: pageserver a/tech_debt Area: related to tech debt labels May 14, 2024
Copy link

github-actions bot commented May 14, 2024

3060 tests run: 2933 passed, 0 failed, 127 skipped (full report)


Code coverage* (full report)

  • functions: 31.4% (6338 of 20187 functions)
  • lines: 47.4% (47915 of 101110 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
d79e9e5 at 2024-05-15T12:14:06.640Z :recycle:

@jcsp jcsp changed the title pageserver: remove Option<> around remote storage pageserver: remove Option<> around remote storage, clean up metadata file refs May 14, 2024
@jcsp jcsp force-pushed the jcsp/no-local-storage branch 2 times, most recently from 88937c2 to 814dedb Compare May 14, 2024 19:27
@jcsp jcsp marked this pull request as ready for review May 15, 2024 08:53
@jcsp jcsp requested a review from a team as a code owner May 15, 2024 08:53
@jcsp jcsp requested a review from VladLazar May 15, 2024 08:53
Copy link
Contributor

@VladLazar VladLazar left a comment

Choose a reason for hiding this comment

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

LGTM - did you already broadcast this on discord?

pageserver/src/tenant.rs Outdated Show resolved Hide resolved
@VladLazar
Copy link
Contributor

VladLazar commented May 15, 2024

Also should your Closes link in the cover letter be https://github.com/neondatabase/neon/issues/6890 instead?

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.

approved with the thim typo fix pointed out by Vlad.

@jcsp jcsp enabled auto-merge (squash) May 15, 2024 11:29
@jcsp jcsp merged commit f342b87 into main May 15, 2024
48 of 49 checks passed
@jcsp jcsp deleted the jcsp/no-local-storage branch May 15, 2024 12:05
a-masterov pushed a commit that referenced this pull request May 20, 2024
…file refs (#7752)

## Problem

This is historical baggage from when the pageserver could be run with
local disk only: we had a bunch of places where we had to treat remote
storage as optional.

Closes: #6890

## Changes

- Remove Option<> around remote storage (in
#7722 we made remote storage
clearly mandatory)
- Remove code for deleting old metadata files: they're all gone now.
- Remove other references to metadata files when loading directories, as
none exist.

I checked last 14 days of logs for "found legacy metadata", there are no
instances.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/tech_debt Area: related to tech debt c/storage/pageserver Component: storage: pageserver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleanups following removal of metadata file
4 participants