GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Phase 3: test_an_interrupted_session_restarts_without_duplicates flakes under full-suite load · Issue #188 · developing-today/code

Phase 3: test_an_interrupted_session_restarts_without_duplicates flakes under full-suite load #188

New issue
Copy link
New issue
Copy link
Closed
#254
Closed
Phase 3: test_an_interrupted_session_restarts_without_duplicates flakes under full-suite load#188
#254
Copy link
Assignees
dezren39

Description

@dezren39
dezren39
opened on Oct 12, 2026
Issue body actions

Failed once in the phase-4 full run (src/event_store/sync.rs:798, left 0, right 256: the cut at 400 records did not commit the first batch). Passes alone three times in a row. The cut depends on record timing, so under load the first batch may not commit before the cut. Fix the test to cut on committed state (for example, wait for the batch to commit before cutting) rather than on a record count.

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 12, 2026
  2. dezren39 commented on Oct 17, 2026

    @dezren39
    dezren39
    on Oct 17, 2026
    MemberAuthor
    More actions

    Mitigation pushed in #224 (and mirrored on the feature stack): the bulk multi-page test now retries with a fresh session when the peer resets the stream mid-flight, up to three attempts, and asserts convergence on the successful session. Sync is idempotent, so the retry cannot mask a correctness bug; the original failure mode ("connection lost: reset by peer" under full-suite load) is what it absorbs. Observed again in run 39013816309 on PR #234.

  3. dezren39
    added a commit that references this issue on Oct 18, 2026

    Merge pull request #254 from developing-today/sweep/188-cut-on-commit

    e1f9923
  4. dezren39
    closed this as completedin #254on Oct 18, 2026
  5. dezren39 commented on Oct 18, 2026

    @dezren39
    dezren39
    on Oct 18, 2026
    MemberAuthor
    More actions

    Fixed by PR #254 (merged, merge commit e1f9923), implementing this issue's suggested fix: the cut now waits on committed state instead of a record count.

    • New Cut::AfterRecordsWhenCommitted: the sender writes its 400 records, then waits until the receiver's CommitSignal reports BATCH_EVENTS (256) committed batches before closing the connection. The receiver reports each batch in flush, only after its transaction succeeds. Wait is capped at 30 s so a peer that never commits still gets cut and the assertions report the real state.
    • Why this was the flake: closing a QUIC connection discards stream data the peer hasn't read yet, so under full-suite load the close could land before B read 256 records — first batch never commits (the observed left 0 / right 256).
    • Local verification: compile checks green (cargo check --lib, --no-default-features, test build; warnings back to the one pre-existing Staged::keeps), rustfmt clean, 5/5 network-free sync tests pass including 2 new unit tests for the signal/wait plumbing. The loopback test itself can't run in the sweep sandbox (UDP sends return EPERM there; even the untouched empty-store loopback test times out on main), so its end-to-end pass under load is CI's to confirm — watch the merged-main nix flake check: the sync tests in id-test are the signal. Note that run 39081860390 on the previous main failed on ENOSPC at link time in id-test/id-ci (parallel --keep-going derivations), not on a test assertion; if that recurs it may mask the result again.
  6. dezren39 commented on Oct 18, 2026

    @dezren39
    dezren39
    on Oct 18, 2026
    MemberAuthor
    More actions

    CI confirmation (sweep, 2026-10-17): in nix flake check run 39090664953 for main@e1f99237 (the #254 merge), test_an_interrupted_session_restarts_without_duplicates passed (it ran ~78s under CI load, well inside its limits). That run also did not hit the ENOSPC link failure seen in the previous main run — the only failure was the bulk LogSync test, tracked in #241. Closing the loop on the verification the sandbox could not do (no UDP there).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.