kshitijk4poor
9c0641eb47
fix(raft): the raft bridge dies with the gateway that started it (orphans after kill -9: 1 -> 0)
...
`raft agent bridge` was a plain Popen child of the gateway. A SIGKILLed or OOM-killed gateway
reparented it to init, where it kept polling Raft and posting wakes to a channel endpoint nobody
serves, forever. The next gateway starts a second bridge beside it.
_spawn_bridge now starts it through process_identity.spawn_owned (its own group, handed to the
owner-death supervisor, recorded in the spawn ledger as "raft-bridge"), and _stop_bridge releases
the group once the bridge has exited (a bridge it failed to stop stays covered).
Measured on Linux, real adapter _spawn_bridge with a stand-in `raft` CLI, owner SIGKILLed,
6 s settle: origin/main 1 of 1 survived; this commit 0 of 2 descendants (bridge + supervisor).
New kill -9 / live-owner case and a _stop_bridge release test; reverting spawn_owned to the
main-era Popen turns the kill -9 case red. test_raft_adapter's multiplex test now patches the
adapter's spawn_owned seam.
2026-10-29 16:58:09 +05:30
..
2026-10-28 07:20:05 -07:00
2026-10-28 19:49:37 -07:00
2026-10-28 15:28:40 +05:30
2026-10-27 12:35:50 -07:00
2026-10-27 12:35:50 -07:00
2026-10-25 11:28:44 -04:00
2026-10-25 03:22:49 -07:00
2026-10-27 12:35:50 -07:00
2026-10-27 16:37:31 -04:00
2026-10-25 11:38:48 -04:00
2026-10-27 16:37:31 -04:00
2026-10-27 12:35:50 -07:00
2026-10-29 09:45:17 +05:30
2026-10-27 17:32:49 -07:00
2026-10-27 17:04:02 -07:00
2026-10-27 17:04:02 -07:00
2026-10-27 15:35:32 -07:00
2026-10-25 11:37:57 -04:00
2026-10-25 11:37:57 -04:00
2026-10-25 17:49:10 -04:00
2026-10-25 11:34:11 -04:00
2026-10-28 13:11:46 -07:00
2026-10-27 17:32:49 -07:00
2026-10-26 00:09:11 -07:00
2026-10-28 04:55:57 +05:30
2026-10-26 18:14:07 -04:00
2026-10-25 18:33:24 -07:00
2026-10-25 11:36:11 -04:00
2026-10-27 12:35:50 -07:00
2026-10-25 03:22:36 -07:00
2026-10-25 19:16:23 -04:00
2026-10-27 17:04:02 -07:00
2026-10-27 17:04:02 -07:00
2026-10-29 09:45:17 +05:30
2026-10-26 13:04:38 +05:30
2026-10-29 09:45:17 +05:30
2026-10-29 09:45:17 +05:30
2026-10-28 15:28:40 +05:30
2026-10-29 09:45:17 +05:30
2026-10-27 16:37:20 -04:00
2026-10-27 16:37:20 -04:00
2026-10-28 19:35:16 -07:00
2026-10-25 03:22:32 -07:00
2026-10-27 17:04:02 -07:00
2026-10-25 06:18:48 -07:00
2026-10-25 06:18:48 -07:00
2026-10-25 06:18:48 -07:00
2026-10-25 06:18:48 -07:00
2026-10-27 17:32:49 -07:00
2026-10-27 20:24:05 -07:00
2026-10-28 07:22:05 -07:00
2026-10-27 17:46:18 -07:00
2026-10-25 19:21:41 -04:00
2026-10-27 17:32:49 -07:00
2026-10-25 19:18:26 -04:00
2026-10-25 11:38:48 -04:00
2026-10-27 12:35:50 -07:00
2026-10-25 11:41:09 -04:00
2026-10-25 19:25:17 -04:00
2026-10-27 08:02:46 -07:00
2026-10-27 08:02:46 -07:00
2026-10-25 19:25:17 -04:00
2026-10-25 19:25:17 -04:00
2026-10-28 07:20:05 -07:00
2026-10-25 19:25:17 -04:00
2026-10-25 19:25:17 -04:00
2026-10-25 19:25:17 -04:00
2026-10-25 19:25:17 -04:00
2026-10-28 17:06:43 +05:30
2026-10-27 17:04:02 -07:00
2026-10-25 19:16:23 -04:00
2026-10-27 12:16:22 -07:00
2026-10-25 10:42:07 -04:00
2026-10-25 19:16:23 -04:00
2026-10-27 17:04:02 -07:00
2026-10-25 19:16:23 -04:00
2026-10-28 19:49:37 -07:00
2026-10-27 17:04:02 -07:00
2026-10-25 11:38:48 -04:00
2026-10-25 20:57:22 -07:00
2026-10-27 17:32:49 -07:00
2026-10-25 03:22:37 -07:00
2026-10-25 19:15:29 -04:00
2026-10-25 11:38:48 -04:00
2026-10-27 17:33:48 -07:00
2026-10-27 12:35:50 -07:00
2026-10-25 11:37:02 -04:00
2026-10-29 16:58:09 +05:30
2026-10-28 19:29:23 -07:00
2026-10-25 11:38:48 -04:00
2026-10-27 12:35:50 -07:00
2026-10-27 12:35:50 -07:00
2026-10-25 19:25:17 -04:00
2026-10-26 21:30:03 -04:00
2026-10-27 12:11:20 -07:00
2026-10-25 23:03:33 -07:00
2026-10-25 11:36:11 -04:00
2026-10-25 11:38:48 -04:00
2026-10-26 07:23:15 -07:00
2026-10-25 11:32:44 -04:00
2026-10-26 13:04:58 +05:30
2026-10-27 17:32:49 -07:00
2026-10-27 19:34:10 -07:00
2026-10-27 17:32:49 -07:00
2026-10-27 17:32:49 -07:00
2026-10-25 11:34:11 -04:00
2026-10-26 18:14:07 -04:00
2026-10-25 19:27:02 -04:00
2026-10-28 19:29:23 -07:00
2026-10-28 19:29:23 -07:00
2026-10-28 19:29:23 -07:00
2026-10-28 19:38:41 -07:00
2026-10-25 19:15:29 -04:00
2026-10-27 11:51:03 -07:00
2026-10-27 12:35:50 -07:00
2026-10-27 17:04:02 -07:00
2026-10-28 19:29:23 -07:00
2026-10-27 12:56:31 -07:00
2026-10-28 21:22:34 -07:00
2026-10-25 11:35:06 -04:00
2026-10-25 11:41:09 -04:00
2026-10-25 11:34:11 -04:00
2026-10-27 12:35:50 -07:00
2026-10-27 11:50:16 -07:00
2026-10-25 19:25:17 -04:00
2026-10-25 04:16:14 -07:00
2026-10-26 18:14:07 -04:00
2026-10-27 17:32:49 -07:00
2026-10-26 13:41:04 +05:30
2026-10-26 13:41:04 +05:30
2026-10-26 13:08:08 +05:30
2026-10-26 13:08:08 +05:30
2026-10-25 03:22:38 -07:00
2026-10-25 03:22:33 -07:00
2026-10-25 03:22:37 -07:00
2026-10-25 03:22:31 -07:00
2026-10-25 03:22:38 -07:00
2026-10-25 03:22:42 -07:00
2026-10-27 17:32:49 -07:00
2026-10-25 03:22:40 -07:00
2026-10-25 03:22:38 -07:00
2026-10-28 19:21:20 -07:00
2026-10-29 16:58:09 +05:30
2026-10-28 19:34:11 -07:00
2026-10-29 16:58:09 +05:30
2026-10-27 08:02:46 -07:00
2026-10-25 19:25:17 -04:00
2026-10-25 19:25:17 -04:00
2026-10-25 19:25:17 -04:00
2026-10-27 08:02:46 -07:00