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

storcon: also support tenant deletion for safekeepers #11289

Merged
merged 7 commits into from
Mar 20, 2025

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Mar 18, 2025

If a tenant gets deleted, delete also all of its timelines. We assume that by the time a tenant is being deleted, no new timelines are being created, so we don't need to worry about races with creation in this situation.

Unlike #11233, which was very simple because it listed the timelines and invoked timeline deletion, this PR obtains a list of safekeepers to invoke the tenant deletion on, and then invokes tenant deletion on each safekeeper that has one or multiple timelines.

Alternative to #11233
Builds on #11288
Part of #9011

Copy link

github-actions bot commented Mar 18, 2025

7964 tests run: 7580 passed, 0 failed, 384 skipped (full report)


Flaky tests (2)

Postgres 17

Postgres 16

Code coverage* (full report)

  • functions: 32.3% (8732 of 26998 functions)
  • lines: 48.4% (74849 of 154711 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
d72f1ec at 2025-03-19T16:09:39.238Z :recycle:

Base automatically changed from arpad/safekeeper_move_code to main March 18, 2025 09:07
@arpad-m arpad-m force-pushed the arpad/storcon_delete_tenant branch from 3c3cbbf to 937da2f Compare March 18, 2025 09:37
Copy link
Contributor

@arssher arssher left a comment

Choose a reason for hiding this comment

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

Put some comments, but it would be more natural to finish https://neondb.slack.com/archives/C04KGFVUWUQ/p1742298363579099?thread_ts=1742297769.832709&cid=C04KGFVUWUQ
and
https://neondb.slack.com/archives/C04KGFVUWUQ/p1742287892184099
first.

Otherwise lgtm, it is in the right direction.

@arpad-m arpad-m added this pull request to the merge queue Mar 20, 2025
Merged via the queue into main with commit 91dad25 Mar 20, 2025
100 checks passed
@arpad-m arpad-m deleted the arpad/storcon_delete_tenant branch March 20, 2025 11:01
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