Skip to content

Metric-detail leases expire only after another worker command #1831

Closed

Description

@FlorentinDUBOIS

The only production lease_tick call is inside Server::notify. notify is reached from worker command-channel messages; normal traffic, timer delivery, health polling, and idle event-loop turns do not call it. Therefore TTL plus the five-second due interval is not a bound when no later control request arrives.

Evidence: source-confirmed scheduling defect; runtime integration unverified. UNVERIFIED at runtime. Required integration: apply a short lease, terminate the owner, issue no later worker request, keep data-plane traffic running, wait TTL + 5s, then require configured detail and lease_tick_expired. Existing simulation: 64 seeds x 1200 steps passed, but manually drives lease_tick.

An exhaustive git grep at both candidate and bd19 found no other production lease_tick caller. Unit and 64-seed simulation success are not scheduling evidence because they invoke lease_tick directly.

Acceptance criteria: Schedule lease expiration from a worker timer or loop wakeup independently of new commands. Add a real-worker regression that loses the owner and sends no control request after TTL, so the observation itself does not trigger 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

    The regression test and real-worker evidence are preserved in #1843 on the frozen bd19a78e2831fa9b3bc099eff96359f1bd457958 base: the lease is applied, 12 HTTP requests succeed, and no passive expiration is observed after approximately 6.1 s without another command. The full E2E run is exit 101 with this failure among 619 passed/3 failed.

    PR #1834 was merged after the freeze as 3fdf9406de9a680f88ab7769d07f46759f0f5560 on 2026-10-03. This investigation did not rebase onto or validate that correction, so this comment only records the frozen-base evidence.

  2. added a commit that references this issue on Oct 4, 2026
    3fdf940
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