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

plan deadlock: CBD resource + computed count + in a module #1947

Closed
phinze opened this issue May 13, 2015 · 1 comment · Fixed by #1949
Closed

plan deadlock: CBD resource + computed count + in a module #1947

phinze opened this issue May 13, 2015 · 1 comment · Fixed by #1949
Assignees

Comments

@phinze
Copy link
Contributor

phinze commented May 13, 2015

Config

// ./main.tf
module "child" {
  source = "./child"
}
// ./child/main.tf
resource "null_resource" "foo" {
  count = "${length("abc")}"
  lifecycle { create_before_destroy = true }
}

Run

terraform plan

Expect

A plan.

Got

A deadlock.

@phinze phinze self-assigned this May 13, 2015
phinze added a commit that referenced this issue May 13, 2015
fixes #1947

Root cause was a bad edge being made by the CBD transform going from the
flattened destroy node to the unflattened create node, which was no
longer in the graph. The destroy node therefore had a dependency that
could never be satisfied, which locked up the walk.
@ghost
Copy link

ghost commented May 2, 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 May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant