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

Make snapshot delete's SPACE_ACCOUNT idempotent #5079

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jmpesp
Copy link
Contributor

@jmpesp jmpesp commented Feb 15, 2024

The SPACE_ACCOUNT node in the snapshot delete saga is not idempotent, and will fail to compensate for the forward action. This will lead to undercounting if the snapshot delete unwinds and the user deletes the snapshot again.

The SPACE_ACCOUNT node in the snapshot delete saga is not idempotent,
and will fail to compensate for the forward action. This will lead to
undercounting if the snapshot delete unwinds and the user deletes the
snapshot again.
@jmpesp jmpesp requested a review from leftwo February 15, 2024 20:46
@jmpesp
Copy link
Contributor Author

jmpesp commented Feb 15, 2024

After thinking about this, if this PR is merged then we need to mimic what is done during the disk delete unwind, namely that we should transition the snapshot to Faulted so that the delete can be retriggered by the user.

I'd like to add more tests for this.

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.

1 participant