-
Notifications
You must be signed in to change notification settings - Fork 53
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
fatal error: concurrent map read and map write #91
Comments
I managed to get plugin output on errors kustomize-concurrent-plan.log: concurrent map writes This was with the latest version:
|
Thanks for reporting this, I will look into it. |
It seems this is an upstream error out of my control. I filed an issue. |
Thanks for looking, I hope it will be fixed upstream |
I was able to get around this issue by introducing dependencies so that the affected resources are not planned concurrently. Perhaps this comment can be of use if anybody else hits this blocker. In the meantime, thank you both for your work and I hope this gets fixed upstream! 😄 |
I am getting the same error from the traces when doing a for_each on a data "kustomization_overlay" |
+1, seeing this as well |
This mutex prevents multiple Kustomizer runs in parallel to avoid the `concurrent map read and map write` bug from upstream. kubernetes-sigs/kustomize#3659
I added a mutex to prevent multiple Kustomize runs in parallel as suggested by @alapidas in the upstream bug. This is in any case preferrable over having to set The bug does not show on every run for me. So I would appreciate testing if this workaround helps with your use cases. You will have to build the provider from source to test this. If it works, I'm happy to cut a bugfix release to make it available through the registry. |
Add Mutex to serialize Kustomizer runs - workaround #91
I released v0.4.3. In my testing the issue did not show anymore with the mutex in place. https://github.com/kbst/terraform-provider-kustomization/releases/tag/v0.4.3 |
Sorry for the late reply - I implemented almost the same thing, except I put the lock inside |
Sometimes I got this error on terraform plan:
Next time it usually works without errors
The text was updated successfully, but these errors were encountered: