Repository navigation
A wedge on a stored segment is the consumer's, so nudge it first (#421) - #424
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,
waitingToMinimizeStallsforever, 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:
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 BROKENnow carriesconsumerTargetStored=andhighStored=, 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.
seektestreports 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