Repository navigation
The engine pool never relocks its budget: the reconcile no longer deadlocks and the core boots - #5837
Merged
Conversation
…ent, so the reconcile no longer deadlocks and the core boots #5835's engine_pool read planned_budget.lock() inside launch_pool's argument list, where the guard lives to the end of the statement, while seated_for (also an argument) locked it again; parking_lot is not reentrant, so the reconcile hung, no module past grid-capacity initialized, and the core never bound its IPC socket (the M5, 2026-11-07 19:11Z; boot wedged 300 s, restart loop). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This was referenced Nov 7, 2026
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…(regression for the M5 boot wedge, #5835 -> #5837) (#5839) * The engine pool never relocks its budget: each lock is its own statement, so the reconcile no longer deadlocks and the core boots #5835's engine_pool read planned_budget.lock() inside launch_pool's argument list, where the guard lives to the end of the statement, while seated_for (also an argument) locked it again; parking_lot is not reentrant, so the reconcile hung, no module past grid-capacity initialized, and the core never bound its IPC socket (the M5, 2026-11-07 19:11Z; boot wedged 300 s, restart loop). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test: engine_pool returns on a real daemon with a planned budget set (regression for the M5 boot wedge, #5835 -> #5837) #5835 held a planned_budget guard as a temporary in launch_pool's argument list while seated_for, another argument, locked the same non-reentrant mutex: the serving reconcile deadlocked and the core never bound its socket (the M5, 2026-11-07 19:08Z). Its tests covered only launch_pool as a pure function. This one calls engine_pool on a real ServingDaemonModule with a planned budget set, under both credit facts, on a thread with a 10 s deadline, so a deadlock fails in seconds instead of wedging a node. Mutation-proved: with the guard back in the argument list the test fails at its deadline (11.34 s); with #5837's separate statements it passes (one_launch 5/5). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P0, the M5 is down on canary acaaf3f. #5835's
engine_poolreadplanned_budget.lock()insidelaunch_pool's argument list, where the guard lives to the end of the statement, whileseated_for(also an argument, launch.rs:782) lockedplanned_budgetagain. parking_lot is not reentrant, so the serving reconcile hung at 19:11:48Z, no module past grid-capacity initialized, and the core never bound its IPC socket (boot is wedgedafter 300 s, restart loop).Fix: each lock is its own statement (
usable,seated), thenlaunch_pool.Measured
cargo test -p continuum-serving --features metal --lib serving_daemon: 128 passed, 0 failed (fcfd7bd).~/.continuum/evidence/live-read-20261107/deploy-fcfd7bd08.txt.engine_poolwith a planned budget present, so a relock deadlocks in CI, not on a node.I passed #5835 and missed this; the review checked what each lock guarded, not how long each guard lived.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo