-
Notifications
You must be signed in to change notification settings - Fork 780
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
Performance test occasionally fails with fatal error: concurrent map writes
#3670
Comments
Error: Getting Permission denied for all resources. |
The error is coming from https://github.com/googleforgames/agones/blob/main/test/load/allocation/runscenario/runscenario.go#L126 Looking at the code, I'm curious how it ever works, since we have a gofunc per client and they are all writing to the same shared map. |
Sorry about that, probably not public, here's a copy
I guess it doesn't manage to synchronously mutate the map too often. Some quick ideas, not sure which ones are best:
|
I think placing mutex in the right places should work. I have created a small example for this use case: https://goplay.tools/snippet/N84X6jIZmIq We can utilize the |
What happened:
Short version:
See attached log for full details
log-275a3e64-934b-4512-80a4-28ff3ad733c8.txt
What you expected to happen:
The performance test should always pass
How to reproduce it (as minimally and precisely as possible):
Check the logs:
https://console.cloud.google.com/cloud-build/builds;region=global/275a3e64-934b-4512-80a4-28ff3ad733c8;step=6?e=13803378&mods=logs_tg_prod&project=agones-images
Anything else we need to know?:
Environment:
kubectl version
): whatever the perf cluster is.The text was updated successfully, but these errors were encountered: