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 TenantConfOpt::TryFrom<toml_edit::Item> #9219

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Oct 1, 2024

Problem

Following #7656, TenantConfOpt::TryFrom<toml_edit::Item> appears to be dead code.

Resolves #8918.

Summary of changes

Remove TenantConfOpt::TryFrom<toml_edit::Item>.

The code does appear to be dead, since the TOML config is deserialized into TenantConfig (via LocationConfig) and then converted into TenantConfOpt.

This was verified by adding a panic to try_from() and running the pageserver unit tests as well as a local end-to-end cluster (including creating a new tenant and restarting the pageserver). This did not fail, so this is not used on the common happy path at least. No explicit try_from or try_into calls were found either.

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

@erikgrinaker erikgrinaker self-assigned this Oct 1, 2024
@erikgrinaker erikgrinaker requested a review from a team as a code owner October 1, 2024 13:05
@erikgrinaker
Copy link
Contributor Author

@koivunej Christian is busy, perhaps you can review this instead since you were also involved on #7656?

@erikgrinaker erikgrinaker requested review from koivunej and removed request for problame October 1, 2024 13:30
Copy link

github-actions bot commented Oct 1, 2024

5022 tests run: 4864 passed, 0 failed, 158 skipped (full report)


Flaky tests (6)

Postgres 17

Postgres 16

Postgres 14

Code coverage* (full report)

  • functions: 31.3% (7486 of 23881 functions)
  • lines: 49.6% (60088 of 121224 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
12a5727 at 2024-10-01T15:48:04.993Z :recycle:

@erikgrinaker erikgrinaker enabled auto-merge (squash) October 1, 2024 14:38
@erikgrinaker erikgrinaker merged commit 325de52 into main Oct 1, 2024
75 checks passed
@erikgrinaker erikgrinaker deleted the erik/tenant-conf-from-item branch October 1, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants