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

delete_namespace can leave leftover data #403

Open
drewler opened this issue Nov 8, 2022 · 0 comments
Open

delete_namespace can leave leftover data #403

drewler opened this issue Nov 8, 2022 · 0 comments

Comments

@drewler
Copy link
Contributor

drewler commented Nov 8, 2022

If possible delete_namespace should delete everything in a single transaction. It seems in its current form it can leave leftover data (eg: an Account that doesn't belong to a Namespace).

I have not been able to reproduce the error, but I noticed the following chain of events:

  • Account deletion was requested (endpoint here).
    • Account is queried using namespace_public_id and succeeded
  • Account deletion started. The account namespace is deleted at this point
  • A deployment happened, leaving that account in a "half-deleted" status
  • delete-marked-accounts tries to get_accounts_to_delete, but it fails when building the list of tuples because the account doesn't have a namespace anympre
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

No branches or pull requests

1 participant