1
0
mirror of https://github.com/prometheus/alertmanager.git synced 2026-02-05 15:45:34 +01:00
Files
Guido Trotter 64ac47bfe6 Fix silence import: also wait for the error collection goroutine to finish (#4735)
* Fix silence import: also wait for the error collection goroutine to finish

As noticed by George Robinson the error collection goroutine in silence
import is also not waited for, so we may get an incorrect count when we
exit. This adds a done channel for that goroutine, and checks that the
error count is correct with a new test.

Signed-off-by: Guido Trotter <guido@hudson-trading.com>

* bulkImport: use sync.Once to close channels

Signed-off-by: Guido Trotter <guido@hudson-trading.com>

---------

Signed-off-by: Guido Trotter <guido@hudson-trading.com>
Co-authored-by: Guido Trotter <guido@hudson-trading.com>
2025-11-21 14:53:12 +01:00
..
2024-03-21 11:26:46 +00:00
2021-12-22 14:03:53 +01:00
2024-03-21 11:26:46 +00:00
2024-03-21 11:26:46 +00:00
2024-03-21 11:26:46 +00:00
2025-08-05 19:47:33 +02:00
2023-12-08 16:44:13 +01:00
2024-03-21 11:26:46 +00:00
2024-03-21 11:26:46 +00:00