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

initialise stopCh before using #49

Merged
merged 1 commit into from
Nov 23, 2020
Merged

initialise stopCh before using #49

merged 1 commit into from
Nov 23, 2020

Conversation

kmoe
Copy link
Member

@kmoe kmoe commented Nov 23, 2020

This should fix #45.

Note the corresponding code in the SDK gRPC server, which was missed out when we ported the stopCh implementation to terraform-plugin-go: https://github.com/hashicorp/terraform-plugin-sdk/blob/master/helper/schema/grpc_provider.go#L29

I'm not completely happy with this yet because I don't have a consistent reproduction case; this code (server.Stop) is not run every time a Ctrl-C is issued during a terraform apply. Leaving this here so we can either agree it's a reasonable change and merge it, or decide to investigate further.

Copy link
Contributor

@paddycarver paddycarver left a comment

Choose a reason for hiding this comment

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

This looks objectively correct. Even without a repro, let's do it!

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible bug: panic after Ctrl-C during apply
2 participants