Skip to content

A wedge on a stored segment is the consumer's, so nudge it first (#421) - #424

Merged
superuser404notfound merged 1 commit into
mainfrom
fix/ae421-consumer-park
Aug 25, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
fix/ae421-consumer-park

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

The 11 to 15 s landings @rrgomes measured after a re-aimed restart, addressed where the evidence points: at the ORDER of the repair, not at its parts.

What the field logs say

The wedge itself is an AVPlayer state (#65 / #93: zero GETs, waitingToMinimizeStalls forever, the item never fails) and does not reproduce here. A 12-seek burst under a 120 kbit/s throttle on the loopback path lands every seek, with and without this change.

What both logs do settle is that the first repair could not have worked in their case:

21:08:52.498 #65 backpressure WEDGE BROKEN head=15 target=5 cacheTarget=4 parked=5s
21:08:52.503 #65 backpressure wedge: re-anchoring producer to 15.00s -> seg3
21:08:58.508 #65 consumer re-engage: no segment fetch for 6s after wedge re-anchor
21:08:58.748 seek#1 programmatic landed rendered=15.00 target=15.00

The pump had marched to segment 15 and was sent back to segment 3. Through the whole grace window the consumer fetched nothing, so the re-anchor demonstrably changed nothing, and the nudge that followed landed the seek in 240 ms. Same shape on the Mac: seg35: served 44291341 B (restarted=true) at +1.9 s, no further GET, nudge at +15.5 s, landed at +15.75 s.

The change

A re-anchor is the repair for a consumer starved of content nobody is producing. A consumer silent about a segment that is already on disk is not starved. So the repair is chosen on that question:

WEDGE BROKEN now carries consumerTargetStored= and highStored=, so a report can say which repair a wedge called for. That is the discriminator the issue asks for first, and it had to be inferred from logs that do not state it.

Deliberately unchanged

The 5 s park detection. Shortening it needs a measurement of what an honest early signal looks like, and a frozen clock is also what a normal seek landing looks like for a moment. This removes the 6 s spent on the repair that could not work, which is the half the logs indict.

Verification

2070 tests green. seektest reports the same 0 wedge breaks / 0 producer re-anchors as before the change, so the new branch raises no false alarm on a healthy run. The effect on a real wedge can only be confirmed on the reporting setup.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RbWZLwBVLGM1xUVXa9NeJ1

…t first (#421)

The wedge is an AVPlayer state (#65 / #93: zero GETs, waitingToMinimizeStalls
forever, the item never fails) and is not reproducible on the loopback path; a
seek burst under a 120 kbit/s throttle lands every seek. What is ours is the
repair, and both field logs indict its order rather than its parts.

  21:08:52.498 #65 backpressure WEDGE BROKEN head=15 target=5 cacheTarget=4 parked=5s
  21:08:52.503 #65 backpressure wedge: re-anchoring producer to 15.00s -> seg3
  21:08:58.508 #65 consumer re-engage: no segment fetch for 6s after wedge re-anchor
  21:08:58.748 seek#1 programmatic landed rendered=15.00 target=15.00

The pump was at segment 15 and was sent back to segment 3, the consumer fetched
nothing for the whole grace window, and the nudge that followed landed the seek
in 240 ms. The Mac run has the same shape (seg35 served at +1.9 s, restarted=true,
no further GET, nudge at +15.5 s, landed at +15.75 s).

A re-anchor is the repair for a consumer STARVED of content nobody is producing.
A consumer silent about a segment that is already on disk is not starved, and
re-anchoring throws the pump's forward work away to rebuild what it already has.
So the repair is now chosen on that question, with the other one kept as the
fallback in the same grace window rather than dropped.

The WEDGE BROKEN line now carries consumerTargetStored= and highStored=, because
whether a re-anchor could have helped at all had to be inferred from two field
logs that do not state it.

The 5 s park detection is deliberately untouched: shortening it needs a
measurement of what an honest early signal looks like, and a frozen clock is
also what a normal seek landing looks like for a moment.

Verification of the effect belongs to the reporter: no wedge occurs here. 2070
tests green, and seektest reports the same 0 wedge breaks / 0 re-anchors as
before, so the new branch raises no false alarm on a healthy run.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01RbWZLwBVLGM1xUVXa9NeJ1
@superuser404notfound
superuser404notfound merged commit 50b2d31 into main Aug 25, 2026
4 checks passed
@superuser404notfound
superuser404notfound deleted the fix/ae421-consumer-park branch September 4, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant