Repository navigation
Description
Four residuals surfaced by the #2064 review, collected here (none block that PR).
1. Flow A encode-task panic is laundered into a local-origin fault
UnfinishedGuard::drop (crates/cache/src/origin_range.rs:427-443) parks CacheError::OriginError { "...ended without completing (panic or cancel)" } when the spawned encode task dies, and Drop for OriginRangeWire (:575-577) only abort()s — the JoinHandle is never joined, so a panic's payload and backtrace are lost to everything but the global hook. Downstream it logs as "own-origin pull leg failed; local-origin fault" (pull_leg.rs:1136): an operator audits S3 while the cause is a code bug. Fix: catch_unwind around the encode body (or join on last-consumer drop) and park a CacheError::Store carrying the panic text, distinguishable from the cancel case.
2. Permit saturation and long pacer waits are debug-only
range_pull_permit(engine.rs) logs pool-full atdebug!with no counter; all draws of all fills shareMAX_CONCURRENT_RANGE_PULLS = 4permits, and a hung origin holds one for a whole draw. A permit-starved fill surfaces only as an unattributed client stall.- A pull sitting in the pacer's
Wait(window-full or min-draw) for an extended period emits nothing; a future encoder-order regression would present as a mystery client timeout. Add a saturation counter and a wait-duration signal (warn-after-threshold orpull_wait_seconds).
3. No-Range origin: degrade before signing
An origin that publishes a valid {H}.obao4 but declines ranged GETs passes the dispatch serviceability probe, so the node signs ok: true and the first draw then fails the stream (BackendSource::open bails on origin_range_wire → None). Pre-#2064 this degraded to the buffered whole-blob pull. Degrading before the signature needs a pre-signature first-window probe (or an Origin capability flag). The current fail-cleanly behavior is pinned by a test added in #2064.
4. Duplicate egress when an attach is refused (#2062 residual)
FillRegistry::claim refuses to attach a request that starts ahead of a live fill's paid frontier — the fix for observer starvation — so overlapping same-hash fills can both fetch the overlap (duplicate S3 egress; duplicate upstream USDC on the peer tier). served_paid lags pulled_frontier by up to a credit window even under a healthy payer, so this is reachable outside the stalled-owner case. Every bounded alternative examined reintroduces starvation (attach-then-wait) or breaks the exposure bound (jumping the frontier over unpaid bytes). #2064 adds a counter at the skip site so the cost is observable; this section tracks whether a smarter rule (e.g. attach when the overlap is already fully pulled and present) is worth it.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
feat(cache): count and log a fill claim not coalesced ahead of the pa…
test(node): close the review's spine coverage gaps
feat(node): stream bounded and resumed cache-miss requests through th…