Skip to content

delete_namespace can leave leftover data #403

Open

Description

@drewler

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions