Dean Sheather
bedd2c5922
fix: avoid race between replicas on start ( #12344 )
...
DERP mesh key setup would do a SELECT and then an INSERT on failure, without a lock. During some testing with multiple replicas, I managed to cause a replica to crash due to them initializing simultaneously.
Fixes:
Encountered an error running "coder server"
create coder API: insert mesh key: pq: duplicate key value violates unique constraint "site_configs_key_key"
Co-authored-by: Cian Johnston <cian@coder.com >
2024-02-28 16:14:11 +00:00
..
2024-02-28 21:19:57 +10:00
2024-02-26 23:52:08 +00:00
2024-01-22 11:42:55 -09:00
2024-01-29 12:17:31 +04:00
2024-02-26 23:52:08 +00:00
2024-01-23 14:33:55 -06:00
2023-10-30 19:44:29 +00:00
2024-01-02 09:30:36 +04:00
2023-12-18 22:53:28 +10:00
2024-02-23 16:48:24 +00:00
2024-02-28 16:14:11 +00:00
2023-09-19 18:54:56 +00:00
2024-02-26 12:35:18 -06:00
2023-08-18 18:55:43 +00:00
2024-02-23 13:13:28 +00:00
2024-02-20 14:58:43 -09:00
2024-02-26 10:03:49 -06:00
2024-02-13 09:31:20 -05:00
2024-01-10 09:13:30 -06:00
2024-02-01 18:01:25 +01:00
2024-02-13 09:31:20 -05:00
2024-01-29 09:12:41 +01:00
2024-02-23 11:17:52 -06:00
2024-02-22 15:04:31 +00:00
2024-02-20 14:58:43 -09:00
2024-02-13 07:00:35 +00:00
2024-01-23 11:52:06 -06:00
2024-01-22 18:55:27 +10:00
2023-10-03 15:44:50 +02:00
2023-10-03 14:04:39 +00:00
2023-10-04 20:57:46 -05:00
2023-10-30 17:42:20 +00:00
2023-08-18 18:55:43 +00:00
2024-02-16 18:43:07 +00:00
2024-02-20 14:58:43 -09:00
2024-01-04 18:35:56 -06:00
2023-11-15 09:42:27 -06:00
2023-09-01 16:50:12 +00:00
2024-01-22 11:42:55 -09:00
2023-08-18 18:55:43 +00:00
2023-10-03 11:02:56 -06:00
2024-02-26 23:52:08 +00:00
2023-10-03 11:02:56 -06:00
2023-08-18 18:55:43 +00:00
2023-08-18 18:55:43 +00:00
2024-02-20 15:50:30 -06:00
2024-02-23 16:48:24 +00:00
2023-08-18 18:55:43 +00:00
2024-02-23 13:13:28 +00:00
2024-02-23 13:13:28 +00:00
2024-02-27 16:33:32 +00:00
2024-01-30 17:11:37 -06:00
2024-02-15 17:13:44 +01:00
2023-10-17 14:49:19 -04:00
2023-10-17 14:49:19 -04:00
2024-01-22 20:46:05 +00:00
2024-01-29 08:55:15 -06:00
2024-01-31 14:49:55 +01:00
2024-01-31 23:17:20 -06:00
2024-01-31 14:49:55 +01:00
2023-10-03 11:02:56 -06:00
2023-09-01 16:50:12 +00:00
2023-12-04 12:20:22 -05:00
2024-01-31 16:01:50 -06:00
2024-02-20 14:58:43 -09:00
2023-10-11 09:41:14 +04:00
2024-02-26 10:03:49 -06:00
2024-02-15 11:01:16 -06:00
2023-08-18 18:55:43 +00:00
2023-08-18 18:55:43 +00:00
2024-01-04 18:35:56 -06:00
2023-10-03 11:02:56 -06:00
2023-12-18 22:53:28 +10:00
2023-10-10 11:14:20 +01:00
2023-10-12 10:52:32 -05:00
2024-02-14 20:45:31 +04:00
2024-02-15 10:51:12 +04:00
2024-02-15 10:51:12 +04:00
2024-02-13 09:31:20 -05:00
2024-02-26 08:27:33 -06:00
2024-02-21 11:18:38 -07:00
2024-02-26 08:27:33 -06:00
2023-08-18 18:55:43 +00:00
2023-08-18 18:55:43 +00:00
2023-12-04 10:01:45 -06:00
2024-02-20 13:19:38 -06:00
2024-02-16 11:09:19 -06:00
2024-02-23 16:48:24 +00:00
2024-02-23 16:48:24 +00:00
2024-02-13 09:31:20 -05:00
2024-02-20 13:26:34 -05:00
2024-02-26 13:27:00 +00:00
2024-02-09 11:39:08 +04:00
2024-02-01 08:18:35 +04:00
2024-02-07 22:26:42 +04:00
2024-02-09 11:39:08 +04:00
2024-02-13 09:31:20 -05:00
2024-01-22 11:42:55 -09:00
2024-02-15 13:33:13 +01:00
2024-02-15 17:13:44 +01:00
2024-01-18 09:44:05 -06:00
2024-01-18 09:44:05 -06:00
2023-10-03 11:02:56 -06:00
2023-08-18 18:55:43 +00:00
2024-02-12 15:11:31 +01:00
2024-02-26 08:27:33 -06:00