mirror of https://github.com/pulumi/pulumi.git
8d1dc083c2
<!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> This fixes a data race between the snapshot system and the step executor for create before delete replacements. When doing a create-before-delete replacement the step generator would issue two steps to the step executor. The first step being Create which would create the new resource instance and add that state to the snapshot system to be saved. The second being a replace step, which didn't interact with the snapshot system but is a step that executes. There's a bit of code in the executor that ran for every step to mutate the outputs to ensure secrets propagated correctly. This could run in parallel with the snapshot system trying to iterator over the outputs to serialise them out and causes a "concurrent map iteration and map write" error. It is obviously very hard to write a test to show this but, work being done in https://github.com/pulumi/pulumi/pull/14079 should improve the likelihood of us detecting issues like this in pu/pu tests. ## Checklist - [x] I have run `make tidy` to update any new dependencies - [x] I have run `make lint` to verify my code passes the lint check - [ ] I have formatted my code using `gofumpt` <!--- Please provide details if the checkbox below is to be left unchecked. --> - [ ] I have added tests that prove my fix is effective or that my feature works <!--- User-facing changes require a CHANGELOG entry. --> - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change <!-- If the change(s) in this PR is a modification of an existing call to the Pulumi Cloud, then the service should honor older versions of the CLI where this change would not exist. You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add it to the service. --> - [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version <!-- @Pulumi employees: If yes, you must submit corresponding changes in the service repo. --> |
||
---|---|---|
.. | ||
deploytest | ||
providers | ||
builtins.go | ||
builtins_test.go | ||
deployment.go | ||
deployment_executor.go | ||
deployment_executor_test.go | ||
deployment_test.go | ||
doc.go | ||
import.go | ||
import_test.go | ||
manifest.go | ||
manifest_test.go | ||
plan.go | ||
plan_test.go | ||
snapshot.go | ||
snapshot_test.go | ||
source.go | ||
source_error.go | ||
source_error_test.go | ||
source_eval.go | ||
source_eval_test.go | ||
source_null.go | ||
source_query.go | ||
source_query_test.go | ||
state_builder.go | ||
state_builder_test.go | ||
step.go | ||
step_executor.go | ||
step_executor_test.go | ||
step_generator.go | ||
step_generator_test.go | ||
step_test.go | ||
target.go | ||
target_test.go |