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 attach/detach apis #8134

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Jun 23, 2024

Problem

These APIs have been deprecated for some time, but were still used from test code.

Closes: #4282

Summary of changes

  • It is still convenient to do a "tenant_attach" from a test without having to write out a location_conf body, so those test methods have been retained with implementations that call through to their location_conf equivalent.

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 Jun 23, 2024
@jcsp jcsp mentioned this pull request Jun 23, 2024
5 tasks
Copy link

github-actions bot commented Jun 23, 2024

2910 tests run: 2793 passed, 0 failed, 117 skipped (full report)


Code coverage* (full report)

  • functions: 32.7% (6867 of 21000 functions)
  • lines: 50.2% (53632 of 106900 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
810bed0 at 2024-06-25T14:47:33.511Z :recycle:

@jcsp jcsp force-pushed the jcsp/remove-attach-detach-apis branch from 0ecb9a3 to 8334f70 Compare June 24, 2024 12:09
@jcsp jcsp force-pushed the jcsp/remove-attach-detach-apis branch from 8334f70 to 810bed0 Compare June 25, 2024 14:00
@jcsp jcsp marked this pull request as ready for review June 25, 2024 15:37
@jcsp jcsp requested a review from a team as a code owner June 25, 2024 15:37
@jcsp jcsp requested a review from problame June 25, 2024 15:37
Copy link
Contributor

@problame problame left a comment

Choose a reason for hiding this comment

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

some nits / questions, no blockers

🔥

storage_controller/src/service.rs Show resolved Hide resolved
test_runner/fixtures/pageserver/http.py Show resolved Hide resolved
@jcsp jcsp enabled auto-merge (squash) June 25, 2024 16:38
@jcsp jcsp merged commit 07f21dd into main Jun 25, 2024
64 of 65 checks passed
@jcsp jcsp deleted the jcsp/remove-attach-detach-apis branch June 25, 2024 16:38
conradludgate pushed a commit that referenced this pull request Jun 27, 2024
## Problem

These APIs have been deprecated for some time, but were still used from
test code.

Closes: #4282

## Summary of changes

- It is still convenient to do a "tenant_attach" from a test without
having to write out a location_conf body, so those test methods have
been retained with implementations that call through to their
location_conf equivalent.
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.

stop accepting empty body in /attach API
2 participants