-
Notifications
You must be signed in to change notification settings - Fork 351
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 #5317
Conversation
1901bc7
to
9a20589
Compare
I tried to solve this in the E2E test setup (with mutex lock) where the clients get instantiated (see https://github.com/apache/camel-k/blob/main/e2e/support/test_support.go#L165). But looking closer at the code I see that the kamel install command will always use a new client instance and this can lead to the concurrent map write. So the proposed solution here makes sense to me. I do not know if this synchronization has some other side effects though. How about synchronizing the |
There are (currently) three usages of apis.AddToScheme
I ignored the first two and believe it is correct to sync in NewClientWithConfig which IMHO is close enough to Sure, lets try to remove that other mutex |
PR validation fails in
|
This is now failing with https://issues.redhat.com/browse/CMLK-1928 |
It was already reported in #5326 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. We are not going to ignore any test. You can restart it or fix it, as you prefer. Thanks.
No description provided.