osquery-perf fails with fatal error: concurrent map read and map write #24381
Labels
~backend
Backend-related issue.
bug
Something isn't working as documented
~dogfood
Issue resulted from Fleet's product dogfooding.
#g-mdm
MDM product group
:incoming
New issue in triage process.
:release
Ready to write code. Scheduled in a release. See "Making changes" in handbook.
~released bug
This bug was found in a stable release.
Milestone
Fleet version:
4.60.0
Web browser and operating system:
💥 Actual behavior
In loadtest, after enrolling 60k MDM hosts, I'm occasionally seeing osquery-perf containers die and restart.
From the logs for a stopped container, I see:
The full loadtest doc is at https://docs.google.com/document/d/1HafECokrZ3jnzRskxMtJwp4k1E2uBTbO9vfKEUtyykI
🧑💻 Steps to reproduce
🕯️ More info (optional)
The message points at this line in agent.go:
I recommend using
sync.Map
for scheduledQueryData struct member.The text was updated successfully, but these errors were encountered: