You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After taking a look, it seems to me there's concurrent writing in Discoverers ApplyConfig to the jobToScrapeConfig map and reading of this map via GetScrapeConfigs() in the scrape config handler during the hashing of the config.
I'd suggest to protect the map with a mutex / return only a copy of the map for reading.
When running the target allocator in our test environment, it would often crash for us with the following output (truncated to most relevant part):
After taking a look, it seems to me there's concurrent writing in
Discoverer
sApplyConfig
to thejobToScrapeConfig
map and reading of this map viaGetScrapeConfigs()
in the scrape config handler during the hashing of the config.I'd suggest to protect the map with a mutex / return only a copy of the map for reading.
Somewhat related to similar issue in #1040
The text was updated successfully, but these errors were encountered: