Skip to content

test(node): two loopback tests flake on a loaded runner (over-cap write race, throwaway draw count) #2723

Closed

Description

@thiras

Two decdn-node loopback tests flake on a loaded runner. Both are test-model errors; the node behaves correctly.

client_loopback::over_cap_stream_is_reset_without_signing_a_response

Error: write second request: frame I/O error: sending stopped by peer: error 16

Seen in run 40746766417. The test writes stream 2's request with write_frame, which makes two write_all calls: the length prefix, then the payload. The node sheds an over-cap stream before it reads anything, with STOP_SENDING APP_ERR_RATE_LIMITED (0x10). On a loaded runner that stop arrives between the two writes. That is the behaviour under test arriving early.

Fix: write the frame in one write_all, as the sibling tests do. Accept Stopped(0x10) as the expected signal.

origin_range_pull::throwaway_open_torn_down_before_real_open_still_serves

Error: a torn-down throwaway costs at most one duplicate draw, saw 3

Seen in run 40748909234. The <= 2 bound counts every ranged GET, including the serviceability probe (bytes=0-16383). The probe was added after the test was written. On a loaded runner the cancelled draw and the re-draw both land: 1 probe + 2 draws = 3. #2311 fixed the same miscount in the sibling throwaway_open_then_real_open_shares_one_multi_draw_fill.

Fix: count the probe separately (probe_range_val). Assert probes <= 1 and draws <= 2.

Activity

  1. added
    kind:test
    prio:low
    area:node
    on Oct 28, 2026
  2. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  3. added a commit that references this issue on Oct 28, 2026
    690346a
  4. moved this from In progress to Done in deCDNon Oct 28, 2026
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

    area:nodekind:testprio:low

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions