Skip to content

node: a DHT answer with only partial holders skips the origin-directory fallback, so the ranged miss fails #2195

Closed

Description

@thiras

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):

  1. dht_lookup returned providers = 1: ash1 (72b40170…), which holds only a ranged-fill partial of the blob.
  2. nbg1 opened the primed header to ash1 (open_progressive_pull, byte_len = 0).
  3. serve_miss_pull ended 0.6 ms later with AssembleOutcome::Unavailable: "node-origin ranged pull: a still-missing range is held by no reachable provider".
  4. 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

Activity

  1. added
    kind:bug
    prio:medium
    rust
    area:node
    on Sep 28, 2026
  2. self-assigned this
    on Sep 28, 2026
  3. added a commit that references this issue on Sep 28, 2026
    0cf9688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodekind:bugprio:mediumrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions