-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pageserver: cleanup redundant create/attach code, fix detach while at…
…taching (#6277) ## Problem The code for tenant create and tenant attach was just a special case of what upsert_location does. ## Summary of changes - Use `upsert_location` for create and attach APIs - Clean up error handling in upsert_location so that it can generate appropriate HTTP response codes - Update tests that asserted the old non-idempotent behavior of attach - Rework the `test_ignore_while_attaching` test, and fix tenant shutdown during activation, which this test was supposed to cover, but it was actually just waiting for activation to complete.
- Loading branch information
Showing
8 changed files
with
234 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4b9b4c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2306 tests run: 2215 passed, 0 failed, 91 skipped (full report)
Flaky tests (1)
Postgres 14
test_crafted_wal_end[last_wal_record_crossing_segment]
: releaseCode coverage (full report)
functions
:54.8% (10142 of 18510 functions)
lines
:81.7% (58087 of 71131 lines)
4b9b4c2 at 2024-01-09T11:25:25.867Z :recycle: