-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
kyaml: fatal error: concurrent map read and map write #3659
Comments
/kind bug |
@natasha41575 Looks like relate to OpenAPI in kyaml. |
Seeing this same issue a la the kustomize provider in Terraform. |
@pst Can you add a mutex around the |
This mutex prevents multiple Kustomizer runs in parallel to avoid the `concurrent map read and map write` bug from upstream. kubernetes-sigs/kustomize#3659
Serialize kustomize build runs to avoid kyaml OpenAPI concurrent map read/write panic kubernetes-sigs/kustomize#3659 Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Serialize kustomize build runs to avoid kyaml OpenAPI concurrent map read/write panic kubernetes-sigs/kustomize#3659 Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Serialize kustomize build runs to avoid kyaml OpenAPI concurrent map read/write panic kubernetes-sigs/kustomize#3659 Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Serialize kustomize build runs to avoid kyaml OpenAPI concurrent map read/write panic kubernetes-sigs/kustomize#3659 Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@alapidas FYI, about the performance concerns you had, we have been hit by this in one of our environments due to its network conditions. We use Flux with the build serialization workaround implemented, and the repository it reconciles relies on the kustomize Helm Chart plugin. Because of the sometimes poor network conditions of this particular environment, the build struggles to pull the Helm Chart, sometimes sevirely resulting in a failure, sometimes it just takes longer because many segments are lost and must be re-transmitted. In result, the Flux Kustomization that struggles to build due to the pulling problem, blocks other Kustomization sometimes for a very long time, below is the sample of reconciliation times we noticed for failed cases.
|
/reopen |
@HirazawaUi: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm using
kustomize/api
to provide a Terraform provider for Kustomize. Presumably as a result of Terraform/GRPC concurrency there is a fatal error caused by concurrent map read and map write from within the kyaml code base around determining if a resource is namespace scoped.The downstream issue has full Terraform debug output logs. But the relevant parts seem to be:
Kustomize version
Relevant lines from
go.mod
:I'm blocked from updating to a higher api version due to #3614
The text was updated successfully, but these errors were encountered: