Skip to content

read: byte-served path skips the -t timed judge (and invalidates the stream arrival table) #3293

Closed

Description

@caomengxuan666

Summary

On the byte-served read path introduced for the joined-delimiter fix (PR #3290, #3212), the -t timed judge is not re-entered: with a slow producer, a timed read that GNU answers with a timeout instead returns data late, and once the mirror rewrite has served a stream, the arrival table (matches_len) for subsequent reads on that stream is invalidated, so the timed judge is silently off for the rest of the stream.

Evidence (captain review of PR #3290, box, GNU bash 5.3.20 oracle)

  • Shape: -t 1 with a slow producer. GNU: the read times out and exits. Head tree: the second read returns data at 3039 ms.
  • The mirror rewrite additionally invalidates the per-stream arrival table, so later reads on the same stream lose the timed judge entirely (silent, no diagnostic).
  • Delimitation against neighbours:
    • The live-pipeline EOF gating (~2010 ms before the first record with a single-byte delimiter) is a pre-existing property of the mirror architecture, present identically on base and head — NOT part of this issue.
    • On the base tree the same shape yields zero records (that absence is the defect PR read: byte-domain record scan for joined -d delimiters (Refs #3212) #3290 fixed). This issue is therefore an incompleteness of the new byte-serve path, not a regression of previously working behaviour.

Fix direction

Reconnect the timed judge on the byte-serve path: timed reads must consult the same arrival/deadline machinery as the legacy serves, and a mirror-served record must not invalidate the arrival bookkeeping for the rest of the stream.

Destination: the read-family wave, together with #3191 and #3291. Regression pin must assert timing behaviour on a slow-producer shape (bounded tolerances, per the #3284 precedent that timing pins are admissible when the divergence is seconds-scale).

Activity

  1. added this to the 1.5.1 milestone on Nov 10, 2026
  2. added
    bug
    gnu-baseline
    P3-low
    area:read
    on Nov 10, 2026
  3. caomengxuan666 commented on Nov 10, 2026

    @caomengxuan666
    MemberAuthor

    Closed by PR #3302 (squash 95013b9b70d866e4e84bb18781fb0b63eb6884c4, merged 2026-11-10T23:41:10Z), captain-verified after merge (PR state MERGED, master tip is the merge commit, squash diff exactly the reviewed 9 files +1321/−175).

    Evidence:

    • Captain review PASS: the byte serve is reconnected to the timed judge with the arrival-table rebase. The pin's discriminating power was independently upheld — the discriminator is rc + assigned values (base deterministically rc=0 with [a979] vs expected rc=142 with [a9]), load-independent with 2 s margins on both sides; the reviewer re-ran the pin shape twice under concurrent load on the head binary with byte-identical outputs. The ~2010 ms live-pipeline EOF gating stays out of scope and is not a regression.
    • Merge round on final head ffd057ea (Simular box, own clone, per-stem verdicts): pin issue3293 4 passed / 0 failed; base fail-first 2 pass / 2 red, the reds exactly the defect cells.
    • No regression: issue3212 14/14; lib bilateral vs master 1233/0/4 on both sides with empty failure-name sets; five legs rc=0 (-D warnings own domain at -j 1); final diff zero libc:: hits; CI 10 success + 1 skipping, zero red, ledger canary green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3-lowarea:readbuggnu-baseline

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions