alertmanager/dispatch
George Robinson ca4c90eb4e
Fix race condition in dispatch.go (#3826)
* Fix race condition in dispatch.go

This commit fixes a race condition in dispatch.go that would cause
a firing alert to be deleted from the aggregation group when instead
it should have been flushed.

The root cause is a race condition that can occur when dispatch.go
deletes resolved alerts from the aggregation group following a
successful notification. If a firing alert with the same
fingerprint is added back to the aggregation group at the same time
then the firing alert can be deleted.

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-05-07 10:34:03 +01:00
..
dispatch_test.go Fix race condition in dispatch.go (#3826) 2024-05-07 10:34:03 +01:00
dispatch.go Fix race condition in dispatch.go (#3826) 2024-05-07 10:34:03 +01:00
route_test.go Fix Route.ID() returns conflicting IDs (#3803) 2024-04-12 10:40:14 +02:00
route.go Fix Route.ID() returns conflicting IDs (#3803) 2024-04-12 10:40:14 +02:00