circonus-labs / reconnoiter

Large-scale Monitoring and Trend Analysis System
Other
245 stars 62 forks source link

Fix Deadlock In Noit Check Resolver #860

Closed pamaddox closed 10 months ago

pamaddox commented 10 months ago

The noit_check_resolver_init() function was calling a function that could try to take a lock that the function already holds, leading to deadlock. Added a new, simple helper function to add the offending locking call to the event loop without calling it first, preventing the deadlock.