Repository navigation
Description
Observed
Since #2188 (announce ranged-fill partials to the DHT) went live on the testnet at 2026-09-28 01:13 UTC, a node-to-node miss can fail when the DHT knows only a partial holder.
At 01:27:11 UTC, nbg1 served a client stream for ad7f7e2bf691d31472f40f915b46ae1d325eec074ea105b81e165334dd76f211, range [0, +1136705536):
dht_lookupreturnedproviders = 1: ash1 (72b40170…), which holds only a ranged-fill partial of the blob.- nbg1 opened the primed header to ash1 (
open_progressive_pull,byte_len = 0). serve_miss_pullended 0.6 ms later withAssembleOutcome::Unavailable: "node-origin ranged pull: a still-missing range is held by no reachable provider".- The serve encoder faulted (
coherent range encode faulted; abandoning the delivery) and the client got a truncated stream.
bcl holds the whole blob at its origin, but nbg1 never tried it. bcl logged nothing from nbg1 in that window.
Evidence: Tempo trace 16caa1b033e23a288fbb817859e22f28 (nbg1).
Cause
discover in crates/node/src/node_origin/mod.rs falls back to the on-chain origin directory only when the DHT lookup returns no providers:
if providers.is_empty() {
deps.origin_directory.lookup_origins(namespace_id).await
} else {
providers
}Before #2188, a node announced only complete blobs, so any DHT answer could serve the whole blob. Now a DHT answer can hold partial holders only. Their coverage union does not span the range, plan_over leaves part of the range uncovered, and assemble returns Unavailable. The AssembleOutcome::Unavailable doc says that "an admitted origin candidate makes this unreachable". That is true, but the origin is never admitted when the DHT is non-empty.
Impact
A two-leg miss for content that only an origin holds in full fails as soon as any node announces a partial of it. The client sees a truncated stream after ok: true, and must fail over to another node or retry. On a fleet with one origin (bcl), every partial fill makes this more likely.
Expected
When the DHT providers' coverage union does not span the requested range, discover (or the probe round) also adds the namespace's origin-directory candidates. Origins advertise all-ones coverage, so the union then closes. A regression test: DHT holds one partial holder, the origin directory holds a full origin, and the ranged pull completes.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(node,cache): reach the directory origin when DHT holders are part…
fix(node): throttle the no-lane miss line and carry miss detail (#2282)
fix(node): log every serve-miss refusal once at info, naming its path (…