Matthew Jacobson
e7c6e9c5c9
Alerting: Fix migration edge-case race condition for silences ( #81206 )
...
If the db already has an entry in the kvstore for the silences of an
alertmanager before the migration has taken place, then it's possible that the
active alertmanager will overwrite the silence file created by the migration
before it has a chance to load it into memory.
This should not happen normally but is possible in edge-cases.
This change opts to bypass the unnecessary step of writing the silences to disk
during the migration and instead write them directly to the kvstore. This avoids
the race condition entirely and is more correct as we treat the database as the
source of truth for AM state.
2024-02-16 10:47:34 -05:00
..
2024-02-16 12:05:00 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-16 17:07:37 +02:00
2024-02-09 16:35:58 +01:00
2024-02-16 15:03:37 +01:00
2023-06-22 09:43:38 +01:00
2024-02-08 13:09:34 +01:00
2024-01-22 11:09:08 -05:00
2024-02-16 15:03:37 +01:00
2023-10-09 10:40:19 +02:00
2024-01-30 16:57:01 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2023-10-30 14:06:26 -04:00
2024-02-09 09:35:39 -05:00
2023-08-30 18:46:47 +03:00
2024-02-16 11:42:36 +01:00
2024-02-16 15:03:37 +01:00
2024-02-15 16:13:14 +00:00
2024-01-05 10:08:38 -06:00
2024-01-26 17:36:35 +02:00
2023-08-17 09:51:45 +02:00
2023-06-19 23:44:01 +02:00
2023-11-21 14:47:23 +01:00
2024-02-16 14:17:41 +00:00
2024-02-09 09:35:39 -05:00
2023-04-14 09:43:11 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 16:35:58 +01:00
2024-02-09 09:35:39 -05:00
2024-02-08 15:56:43 +00:00
2024-02-16 10:47:34 -05:00
2024-02-16 04:58:05 -06:00
2024-02-05 16:44:25 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-01-16 11:08:39 +01:00
2024-02-14 14:30:24 +01:00
2024-02-09 09:35:39 -05:00
2024-02-15 09:45:10 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-08 13:09:34 +01:00
2024-02-08 13:09:34 +01:00
2024-01-25 11:10:35 +01:00
2024-01-23 12:36:22 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-16 11:42:36 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-16 11:52:43 +00:00
2024-02-14 16:06:52 +01:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2024-02-09 09:35:39 -05:00
2023-11-30 09:30:35 +01:00
2024-02-09 09:35:39 -05:00
2024-02-12 14:48:29 +01:00
2024-02-09 09:35:39 -05:00
2024-01-16 11:19:32 +00:00
2024-02-16 04:58:05 -06:00
2023-01-23 15:10:14 -05:00