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

provider/aws: fix crash when Aurora instance disappears #5717

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Mar 18, 2016

Usage of a helper function was assuming that an error would be returned
in a not found condition, when in fact a nil pointer was
returned.

Attached test crashes w/o fix, passes with it.

Fixes #5350
Refs #5418

@phinze phinze force-pushed the phinze/fix-rds-cluster-instance-disappears-crash branch from c8285a3 to 9e93d74 Compare March 18, 2016 17:11
Usage of a helper function was assuming that an error would be returned
in a not found condition, when in fact a nil pointer was
returned.

Attached test crashes w/o fix, passes with it.

Fixes #5350
Refs #5418
@phinze phinze force-pushed the phinze/fix-rds-cluster-instance-disappears-crash branch from 9e93d74 to 1777520 Compare March 18, 2016 17:28
@phinze
Copy link
Contributor Author

phinze commented Mar 18, 2016

=== RUN   TestAccAWSRDSClusterInstance_disappears
--- PASS: TestAccAWSRDSClusterInstance_disappears (748.53s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    748.556s

It hurts to eat another long running test, but I'd rather have the crash covered than not.

@jen20
Copy link
Contributor

jen20 commented Mar 18, 2016

LGTM

@stack72
Copy link
Contributor

stack72 commented Mar 18, 2016

This is a great little find! LGTM! <3 the test for expecting a non-empty plan

phinze added a commit that referenced this pull request Mar 18, 2016
…ce-disappears-crash

provider/aws: fix crash when Aurora instance disappears
@phinze phinze merged commit 65d0707 into master Mar 18, 2016
@phinze phinze deleted the phinze/fix-rds-cluster-instance-disappears-crash branch March 18, 2016 18:00
@phinze
Copy link
Contributor Author

phinze commented Mar 18, 2016

Also fixes #4019

@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid memory / nil pointer error when manually removing RDS cluster instance
3 participants