You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node-origin: the coverage-union probe round never spans for the empty root (zero-block target) #2526
CoverageUnionTracker::spans() (crates/node/src/node_origin/mod.rs, CoverageUnionTracker) is self.target > 0 && …. For the empty root num_blocks(0) == 0, so target stays 0 and spans() is never true, whatever the holders answer.
The pull leg gathers with ProbeGather::CoverageUnion (crates/node/src/node_origin/pull_leg.rs). For the empty root that means:
the probe round never ends early on a holder; it waits for every probe to answer or time out,
coverage_spans(&candidates) is false, so probe_and_rank always runs the second origin-directory round,
spanning_cached_candidates never treats the probe cache as a hit.
The pull still succeeds (the holders reach candidates), so this is latency, not failure. In production the path is unreachable today: iroh-blobs reports the empty root complete at size 0 on every backend, so a node's own store answers has() before a serve-miss is raised. Only a direct Origin::fetch (as in node_origin_discovers_the_empty_blob_by_probe) reaches it.
Treat the round as spanning when the requested hash is decdn_protocol::EMPTY_ROOT and at least one holder is admitted. Key it on the hash, as ProbeResponseExt::consistent_with does, not on total_bytes_hint == Some(0): the hint is unsigned, so one lying holder could otherwise end every gather after its own answer. Pass the hash into the tracker, or check hash == EMPTY_ROOT && !candidates.is_empty() beside union.spans() and coverage_spans. Add a coverage_spans unit test on a Some(0) hint.
Activity