Skip to content

Define pending control-command behavior across upgrade-main #1832

Closed

Description

@FlorentinDUBOIS

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.

Activity

  1. FlorentinDUBOIS commented on Oct 3, 2026

    @FlorentinDUBOIS
    CollaboratorAuthor

    #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.

  2. added a commit that references this issue on Oct 4, 2026
    7e2ebc0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions