-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Instance drain timeout for EMR cluster destroy is too low #7957
Comments
Hi @salikov1809 it looks like this may be a duplicate of #3465. If that’s true we can close this issue and tack progress there. If you believe it is a different issue please provide a redacted configuration to help us reproduce the issue. |
Hi, I believe this is a different issue. In our case Terraform does wait 10 minutes (the hardcoded timeout value), but 10 minutes is not enough to destroy our EMR clusters (it often takes 11 minutes or more to destroy them). To reproduce this issue you would need an EMR cluster with a destroy time longer than 10 minutes. Unfortunately I cannot provide you with full details of our configuration at the moment. For a quick fix we've just replaced the hardcoded value of 10 minutes with a higher one in the source code and recompiled the provider. Having this timeout value configurable (like the aws_instance resource) would solve the issue. |
Agree this is a different than #3465 where it was reported related resources were attempted to be removed before EMR is actually deleted. This issue is that it sometimes takes longer than ten minutes to destroy a cluster. If this value can't be increased by default, the timeouts configuration suggested by @salikov1809 would be a good compromise.
|
Hi folks 👋 We've merged an increase in the timeout from 10 minutes to 20 minutes in the This timeout increase will release with version 2.8.0 of the Terraform AWS Provider, likely later this week. |
This has been released in version 2.8.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Although I am not running the latest version - source code check confirms the hardcoded timeout value is the same as in the latest version
Terraform v0.11.10
Affected Resource(s)
Expected Behavior
terraform destroy
succeedsActual Behavior
Time needed to destroy our EMR cluster resources is very close to 10 minutes. Occassionally it takes slightly more than 10 minutes in which case destroy fails due to the instance drain timeout (
error waiting for EMR Cluster (%s) Instances to drain
) which is currently hardcoded to 10 minutes.Steps to Reproduce
terraform destroy
Important Factoids
References
The text was updated successfully, but these errors were encountered: