rcourtman
035436ad6e
fix: add mutex to prevent concurrent map writes in Docker agent CPU tracking
...
The agent was crashing with 'fatal error: concurrent map writes' when
handleCheckUpdatesCommand spawned a goroutine that called collectOnce
concurrently with the main collection loop. Both code paths access
a.prevContainerCPU without synchronization.
Added a.cpuMu mutex to protect all accesses to prevContainerCPU in:
- pruneStaleCPUSamples()
- collectContainer() delete operation
- calculateContainerCPUPercent()
Related to #1063
2026-01-15 21:10:55 +00:00
..
2026-01-15 21:10:55 +00:00
2026-01-15 21:10:55 +00:00
2026-01-01 22:29:15 +00:00
2026-01-15 21:10:55 +00:00
2025-12-30 23:39:55 +00:00
2026-01-10 22:45:40 +00:00
2025-12-19 22:49:30 +00:00
2025-10-14 16:48:22 +00:00
2026-01-03 20:51:25 +00:00
2026-01-10 12:55:02 +00:00
2026-01-11 21:43:23 +00:00
2026-01-10 12:55:02 +00:00
2026-01-09 19:25:33 +00:00
2026-01-10 12:55:02 +00:00
2025-12-02 00:51:44 +00:00
2026-01-09 16:51:08 +00:00
2026-01-01 22:29:15 +00:00
2025-12-01 23:50:10 +00:00
2026-01-09 16:51:08 +00:00
2025-12-01 14:46:00 +00:00
2025-12-02 17:21:48 +00:00
2026-01-09 16:51:08 +00:00
2025-12-01 14:09:35 +00:00
2025-12-02 13:36:23 +00:00
2025-11-17 14:25:46 +00:00
2025-11-17 14:25:46 +00:00
2026-01-15 21:10:55 +00:00
2026-01-15 21:10:55 +00:00
2026-01-15 21:10:55 +00:00
2026-01-03 11:14:17 +00:00
2025-12-12 11:05:24 +00:00
2025-12-01 23:24:06 +00:00
2025-12-23 18:52:13 +00:00
2026-01-04 15:38:30 +00:00
2026-01-15 13:24:18 +00:00
2025-10-11 23:29:47 +00:00
2025-11-29 17:06:18 +00:00
2026-01-14 12:20:39 +00:00
2026-01-03 18:36:17 +00:00
2025-12-02 03:16:52 +00:00
2025-11-06 13:54:26 +00:00
2026-01-03 18:36:17 +00:00
2026-01-15 21:10:55 +00:00
2026-01-15 21:10:55 +00:00
2026-01-03 18:36:17 +00:00
2025-11-30 02:48:05 +00:00
2025-10-21 12:37:39 +00:00
2025-12-12 21:31:11 +00:00
2025-12-20 20:25:20 +00:00
2026-01-13 10:06:48 +00:00
2025-12-12 11:05:24 +00:00
2025-12-10 00:29:07 +00:00
2025-12-01 23:52:21 +00:00
2025-11-27 08:34:31 +00:00
2025-12-02 16:47:13 +00:00
2025-11-29 22:03:15 +00:00
2025-12-28 10:19:32 +00:00
2025-12-01 23:08:36 +00:00
2026-01-10 12:55:02 +00:00
2026-01-09 19:25:33 +00:00
2025-12-02 01:00:06 +00:00
2025-12-20 10:45:46 +00:00
2026-01-15 13:24:18 +00:00
2025-12-02 17:21:48 +00:00
2025-12-19 14:51:52 +00:00
2025-11-30 04:33:59 +00:00
2025-12-02 15:58:59 +00:00
2026-01-09 19:16:34 +00:00
2026-01-11 23:51:12 +00:00
2026-01-09 16:51:08 +00:00
2025-10-11 23:29:47 +00:00
2026-01-03 11:14:17 +00:00
2025-12-12 11:05:24 +00:00
2026-01-10 12:55:02 +00:00
2025-12-07 14:47:29 +00:00
2025-12-01 21:33:45 +00:00
2025-11-24 15:16:14 +00:00
2026-01-09 16:51:08 +00:00
2026-01-09 16:51:08 +00:00
2026-01-15 21:10:55 +00:00
2026-01-12 16:37:07 +00:00
2026-01-12 15:19:59 +00:00
2026-01-01 22:29:15 +00:00
2025-11-27 10:12:48 +00:00
2026-01-09 16:51:08 +00:00
2026-01-09 16:51:08 +00:00
2026-01-09 16:51:08 +00:00
2025-12-02 00:19:20 +00:00
2026-01-09 16:51:08 +00:00
2026-01-15 13:24:18 +00:00
2025-12-18 21:51:25 +00:00
2026-01-10 12:55:02 +00:00
2026-01-10 12:55:02 +00:00
2026-01-12 16:37:07 +00:00
2026-01-12 15:19:59 +00:00
2026-01-12 15:19:59 +00:00
2026-01-09 16:51:08 +00:00
2025-11-18 21:30:04 +00:00
2025-12-01 01:05:07 +00:00
2025-11-29 21:47:22 +00:00
2026-01-03 18:36:17 +00:00
2025-12-02 11:38:47 +00:00
2025-11-30 14:07:04 +00:00
2026-01-08 23:04:25 +00:00
2025-12-09 09:29:27 +00:00
2026-01-01 22:29:15 +00:00
2026-01-11 23:51:12 +00:00
2026-01-11 23:51:12 +00:00
2026-01-01 22:29:15 +00:00
2026-01-01 22:29:15 +00:00
2025-12-19 22:49:30 +00:00
2025-12-02 16:47:13 +00:00