You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define pending control-command behavior across upgrade-main #1832
Multiple command clients are admitted. UpgradeData transfers state, workers, descriptors, and counters but no clients, queued/tasks, or in_flight routes; the new hub starts those maps empty. Once confirmed, the old hub enters Stopping, closes empty-buffer clients, and stops reading worker responses. A concurrently pending task therefore has no defined continuation.
This is a contract and regression-test gap, not a reproduced command-loss report.
Evidence: source-proved handoff gap; runtime consequence unverified. UNVERIFIED. Suspend one worker response for client A, invoke upgrade-main from client B, and assert an explicit contract: bounded rejection before handoff, resumed terminal response, or a documented/tested exclusivity failure.
RELOADING=1 is an observable systemd notification for external serialization, not an admission lock. No documentation makes absence of concurrent commands an upgrade precondition. The exact client-visible loss and state outcome were not reproduced, so this remains unproven as a concrete defect.
Acceptance criteria: Choose and document a bounded contract for an already-admitted command: complete/drain before handoff, continue with a terminal response after handoff, or reject concurrent admission explicitly. Add a test that suspends a worker response across upgrade-main and verifies the chosen client result and task cleanup.
Source checked at bd19a78e2831fa9b3bc099eff96359f1bd457958 on 2026-10-03:
Runtime evidence, where stated, was collected on 8ed38435c6e80dc374de421116d8b145f1e5ce6a; the reviewed mechanisms remain unchanged at the source revision above. Audit regression tests are prepared locally and are not yet published on main.
#1843 adds replayable characterization on the frozen bd19a78e2831fa9b3bc099eff96359f1bd457958 base without choosing a product contract.
During upgrade-main, the command client exits with ReadBlocking(NoByteToRead), the old main exits 0, the new main becomes active, and the worker's late response is treated as an unknown task. A real slow HTTP/1 request in flight through the worker still completes with HTTP 200.
The open product question remains whether a pending command must be refused before upgrade, drained by the old main, or transferred to the new main. No assertion in the draft requires one of those choices.
Activity
FlorentinDUBOIS commentedon Oct 3, 2026
#1843 adds replayable characterization on the frozen
bd19a78e2831fa9b3bc099eff96359f1bd457958base without choosing a product contract.During
upgrade-main, the command client exits withReadBlocking(NoByteToRead), the old main exits 0, the new main becomes active, and the worker's late response is treated as an unknown task. A real slow HTTP/1 request in flight through the worker still completes with HTTP 200.The open product question remains whether a pending command must be refused before upgrade, drained by the old main, or transferred to the new main. No assertion in the draft requires one of those choices.
fix(command): withdraw the upgrade-main refusal for pending commands
fix(command): earliest-deadline poll, cancelled-task routes, stopping…
fix(command): transfer pending commands during main upgrade (sozu-pro…