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

Prevent orphaned resources for cancellation during delete #368

Merged
merged 4 commits into from
Jan 24, 2019

Conversation

lblackstone
Copy link
Member

Fixes #245

The provider code was not properly processing errors
returned from delete awaiters, which could orphan resources
in case of user cancellation. Update the provider to checkpoint
resources that are still in the process of deleting.
Copy link
Contributor

@hausdorff hausdorff left a comment

Choose a reason for hiding this comment

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

HA! Thanks for this. I'm glad we got to this in M21. :)

Might be too hard, but: any chance we can add tests for this?

pkg/provider/provider.go Outdated Show resolved Hide resolved
@lblackstone
Copy link
Member Author

I opened #374 to track adding test coverage. It looks like it'll be nontrivial, so I'll handle that separately.

@lblackstone lblackstone merged commit e7825ed into master Jan 24, 2019
@pulumi-bot pulumi-bot deleted the lblackstone/fix-orphaned-delete branch January 24, 2019 23:03
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.

None yet

2 participants