mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
Previously, backend url health check start could produce a data race and a race condition. The following panic could be produced: `panic: sync: WaitGroup is reused before previous Wait has returned` It happened because concurrent goroutine could process request, while configuration was reloaded and stopHealthChecks method was called. This commit adds a dedicated structure for backend health checks. Which protects from data race with mutex guard. And prevents race condition with a boolean flag. Fixes: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10806