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
ADR 005 says an oversized own-origin blob answers Declined; the node signs NotFound #2934
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:protocolWire format, ALPNs, discovery/DHT, probedesign:consistencyADRs, code or contracts disagree with each otherkind:bugSomething does not behave as documentedprio:mediumScheduled
ADR 005 § max_blob_size enforcement (adr/005-protocol.md, the Own origin bullet) says the node compares max_blob_size with the origin catalog size and returns StreamResponse {ok: false, error: Declined} when the blob is larger.
The code does not do that:
The reactive local-origin fill (crates/node/src/handlers/client/fill.rs, the deterministic-error arm around line 159) maps CacheError::BlobTooLarge to FillOutcome::CleanMiss.
CleanMiss refuses as ServeRejectReason::CacheMiss, which signs NotFound and counts in decdn_serve_stream_rejected_cache_miss_total, not rejected_blob_too_large.
No pre-check against the catalog size exists on the own-origin serve path. The only max_blob_size gate in the handler is the pull-through held-bytes gate in window.rs.
Effect: a client hears NotFound ("not now, try others"), not Declined ("this node will not serve this hash during this fetch"). It can retry this node for a blob it will never serve.
Fix: either make the own-origin oversized case refuse Declined (BlobTooLarge) or change the ADR to match the code. This is a design call.
The fill.rs path this issue describes (BlobTooLarge → CleanMiss → NotFound) was deleted in #2922. On main, own origin enforced no max_blob_size at all: serve_via_backend_origin signed ok: true, and the ranged local leg ran with cap 0.
Design call: the code should not decline the whole blob, and the ADR's catalog-size sentence should not stay. #2464 made the cap mean "bytes held per blob" for pull-through. A relay serves ranges of a blob larger than its cap, so an origin node that declines that blob would make it unservable network-wide. #2937 applies the bytes-held rule to own origin too and rewrites ADR 005 to state one rule for both sources.
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:protocolWire format, ALPNs, discovery/DHT, probedesign:consistencyADRs, code or contracts disagree with each otherkind:bugSomething does not behave as documentedprio:mediumScheduled
Activity
fix(node): own origin caps bytes held per blob, like pull-through
yigitdot commentedon Nov 22, 2026
The
fill.rspath this issue describes (BlobTooLarge→CleanMiss→NotFound) was deleted in #2922. On main, own origin enforced nomax_blob_sizeat all:serve_via_backend_originsignedok: true, and the ranged local leg ran with cap0.Design call: the code should not decline the whole blob, and the ADR's catalog-size sentence should not stay. #2464 made the cap mean "bytes held per blob" for pull-through. A relay serves ranges of a blob larger than its cap, so an origin node that declines that blob would make it unservable network-wide. #2937 applies the bytes-held rule to own origin too and rewrites ADR 005 to state one rule for both sources.
fix(node): own origin serves blobs past max_blob_size by pass-through
fix(node): own origin streams blobs past max_blob_size without storin…