William Lallemand
c6221db375
BUG/MINOR: mworker: don't try to access an initializing process
...
In pcli_prefix_to_pid(), when resolving a worker by absolute pid
(@!<pid>) or by relative pid (@1), a worker that still has PROC_O_INIT
set (i.e. not yet ready, still initializing) could be returned as a
valid target.
During a reload, if a client connects to the master CLI and sends a
command targeting a worker (e.g. @@1 or @@!<pid>), the master resolves
the target pid and attempts to forward the command by transferring a fd
over the worker's sockpair. If the worker is still initializing and has
not yet sent its READY signal, its end of the sockpair is not usable,
causing send_fd_uxst() to fail with EPIPE. This results in the
following alert being repeated in a loop:
[ALERT] (550032) : socketpair: Cannot transfer the fd 13 over sockpair@5. Giving up.
The situation is even worse if the initializing worker has already
exited (e.g. due to a bind failure) but has not yet been removed from
the process list: in that case the sockpair's remote end is already
closed, making the failure immediate and unrecoverable until the dead
worker is cleaned up.
This was not possible before 3.1 because the master's polling loop only
started once all workers were fully ready, making it impossible to
receive CLI connections while a worker was still initializing.
Fix this by skipping workers with PROC_O_INIT set in both the absolute
and relative pid resolution paths of pcli_prefix_to_pid(), so that
only fully initialized workers can be targeted.
Must be backported to 3.1 and later.
2026-03-18 17:08:30 +01:00
..
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-10-28 11:59:32 +01:00
2026-02-23 09:46:34 +01:00
2026-03-12 18:06:38 +01:00
2026-03-12 18:06:38 +01:00
2026-03-12 18:06:38 +01:00
2024-10-18 14:30:24 +02:00
2025-02-06 16:55:37 +01:00
2026-03-12 18:06:38 +01:00
2026-02-18 13:26:20 +01:00
2026-03-06 13:55:31 +01:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2024-09-15 23:44:59 +02:00
2025-11-14 11:01:45 +01:00
2025-11-14 10:44:05 +01:00
2026-03-18 15:30:39 +01:00
2026-03-02 14:07:40 +01:00
2026-01-20 17:17:37 +01:00
2026-01-07 09:54:31 +01:00
2026-02-23 09:40:18 +01:00
2025-12-24 11:35:09 +01:00
2026-03-12 18:06:37 +01:00
2025-11-06 15:01:29 +01:00
2026-03-10 15:10:34 +01:00
2026-02-18 13:26:21 +01:00
2026-03-18 17:08:30 +01:00
2026-03-18 11:18:33 +01:00
2025-08-11 19:55:30 +02:00
2026-03-12 18:06:38 +01:00
2026-01-13 11:12:34 +01:00
2026-02-24 08:17:16 +01:00
2025-09-06 11:05:52 +02:00
2026-03-12 18:06:37 +01:00
2024-11-18 18:50:02 +01:00
2025-09-10 16:48:09 +02:00
2026-02-18 13:26:21 +01:00
2025-09-17 14:30:32 +02:00
2025-09-17 14:30:32 +02:00
2025-12-25 19:45:29 +01:00
2025-01-07 16:42:38 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2025-08-11 19:55:30 +02:00
2024-11-15 15:39:00 +01:00
2026-03-06 13:55:31 +01:00
2026-03-05 15:35:21 +01:00
2025-08-11 19:55:30 +02:00
2026-03-12 18:06:38 +01:00
2025-11-24 14:10:13 +01:00
2026-03-06 13:55:41 +01:00
2026-03-18 11:28:33 +01:00
2026-02-26 08:24:03 +01:00
2025-11-24 14:10:13 +01:00
2026-02-19 08:20:37 +01:00
2025-09-16 09:23:46 +02:00
2026-03-05 15:34:46 +01:00
2025-05-16 15:13:17 +02:00
2026-03-17 07:48:02 +01:00
2026-02-26 17:03:53 +01:00
2026-03-17 07:48:02 +01:00
2026-03-18 15:30:39 +01:00
2026-02-20 12:12:10 +01:00
2026-03-12 18:06:38 +01:00
2026-03-03 08:45:27 +01:00
2026-03-12 18:06:38 +01:00
2026-03-05 14:33:21 +01:00
2026-03-03 16:22:57 +01:00
2026-02-18 13:26:21 +01:00
2026-03-17 07:48:02 +01:00
2026-03-02 10:44:59 +01:00
2026-02-18 13:26:21 +01:00
2025-04-02 11:12:20 +02:00
2026-03-05 15:34:46 +01:00
2025-01-03 10:10:09 +01:00
2026-03-12 18:06:38 +01:00
2025-10-29 08:47:19 +01:00
2025-07-24 12:13:42 +02:00
2026-03-17 07:48:02 +01:00
2026-03-12 18:06:38 +01:00
2026-03-10 14:58:47 +01:00
2026-03-12 09:18:42 +01:00
2026-03-10 14:20:42 +01:00
2026-02-10 07:22:54 +01:00
2025-01-28 12:49:41 +01:00
2025-10-01 18:13:33 +02:00
2025-04-17 17:38:23 +02:00
2025-01-28 12:49:41 +01:00
2025-11-20 18:38:09 +01:00
2025-09-05 08:51:07 +02:00
2026-03-05 15:39:42 +01:00
2026-03-02 10:44:59 +01:00
2025-06-27 16:41:18 +02:00
2026-02-26 08:24:03 +01:00
2026-03-17 17:08:28 +01:00
2024-08-30 14:58:59 +02:00
2026-03-12 18:06:38 +01:00
2026-03-12 18:06:38 +01:00
2026-03-12 18:06:38 +01:00
2026-03-10 15:10:34 +01:00
2026-03-10 15:10:34 +01:00
2026-03-12 18:06:38 +01:00
2026-03-13 20:26:53 +01:00
2024-12-10 08:05:34 +01:00
2026-02-23 16:28:41 +01:00
2026-02-09 09:18:04 +01:00
2025-12-31 00:29:47 +01:00
2026-02-18 13:26:20 +01:00
2026-02-26 08:24:03 +01:00
2025-08-11 19:55:30 +02:00
2026-02-26 08:24:03 +01:00
2025-11-20 16:44:03 +01:00
2026-03-12 18:06:38 +01:00
2026-03-16 16:31:58 +01:00
2026-02-12 18:02:19 +01:00
2025-12-11 18:09:47 +01:00
2024-10-29 12:14:50 +01:00
2025-06-11 18:37:34 +02:00
2025-10-23 16:47:58 +02:00
2026-03-12 18:06:37 +01:00
2026-02-17 18:18:44 +01:00
2025-06-12 11:28:54 +02:00
2026-03-05 15:42:02 +01:00
2025-07-15 18:39:23 +02:00
2026-02-12 02:18:59 +01:00
2025-08-11 19:55:30 +02:00
2025-12-01 15:05:41 +01:00
2025-12-01 15:05:41 +01:00
2024-12-13 14:42:43 +01:00
2025-12-01 15:05:41 +01:00
2025-12-01 15:05:41 +01:00
2025-12-01 15:05:41 +01:00
2025-12-25 19:45:29 +01:00
2025-11-25 14:50:19 +01:00
2026-03-03 16:22:57 +01:00
2025-10-15 09:58:03 +02:00
2026-02-12 09:09:44 +01:00
2025-10-23 16:49:20 +02:00
2026-02-03 04:05:34 +01:00
2025-01-23 17:41:07 +01:00
2025-08-07 16:59:59 +02:00
2026-02-26 08:24:03 +01:00
2026-03-12 18:06:38 +01:00
2026-03-12 18:06:38 +01:00
2026-02-26 08:24:03 +01:00
2026-03-12 18:06:38 +01:00
2026-02-26 17:03:53 +01:00
2025-08-11 19:55:30 +02:00
2025-10-22 15:04:41 +02:00
2026-02-12 09:09:44 +01:00
2026-03-05 15:02:02 +01:00
2025-12-08 10:40:59 +01:00
2026-02-26 08:24:03 +01:00
2025-10-01 10:23:01 +02:00
2025-10-13 16:56:43 +02:00
2026-03-05 15:35:31 +01:00
2025-09-18 15:27:32 +02:00
2026-03-12 18:06:38 +01:00
2026-01-13 11:12:34 +01:00
2026-03-12 18:06:38 +01:00
2026-03-12 18:06:38 +01:00
2026-02-18 09:44:15 +01:00
2025-08-11 19:55:30 +02:00
2026-03-02 10:44:59 +01:00
2025-05-16 16:43:53 +02:00
2025-12-11 18:09:47 +01:00
2025-12-11 18:09:47 +01:00
2025-12-24 18:38:51 +01:00
2026-03-11 17:00:59 +01:00
2025-12-08 10:40:59 +01:00
2026-02-16 18:41:40 +01:00
2026-03-11 17:00:59 +01:00
2025-11-06 11:56:27 +01:00
2026-03-11 17:00:59 +01:00
2026-03-12 18:06:38 +01:00
2026-03-11 17:00:59 +01:00
2026-03-11 17:00:59 +01:00
2026-03-18 11:18:33 +01:00
2026-02-27 10:28:24 +01:00
2025-02-06 17:19:49 +01:00
2026-02-27 10:28:24 +01:00
2026-02-27 10:28:24 +01:00
2026-03-17 07:48:02 +01:00
2026-03-18 11:18:37 +01:00
2026-03-17 08:39:49 +01:00
2024-11-25 08:09:09 +01:00
2026-03-12 18:06:38 +01:00
2025-09-18 16:49:51 +02:00
2026-03-12 18:06:38 +01:00
2026-01-11 15:48:20 +01:00
2026-03-12 18:06:38 +01:00
2026-03-02 14:09:25 +01:00
2026-03-18 15:30:39 +01:00
2026-03-13 09:13:24 +01:00
2026-02-26 08:24:03 +01:00
2024-07-18 13:29:52 +02:00
2026-01-21 10:44:19 +01:00
2025-01-20 17:53:55 +01:00
2025-10-01 10:18:53 +02:00
2026-03-12 18:06:38 +01:00
2026-03-03 16:23:03 +01:00