Repository navigation
Closed
Labels
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Description
Summary
After a restart, nodes reseed node-to-node buyer lanes from the on-chain watermark ("this node had no local record of having paid on it"), including lanes with gigabytes of prior payment. The seed sits below the seller's unredeemed anchor. The seller then rejects the node's voucher as BytesRegression, and node_origin treats that as unrecoverable and suppresses the provider.
Evidence (testnet, 2026-09-30, fleet restarted ~15:27 UTC)
- The pool row survives the restart. lon1 at 15:27:28:
BuyerPoolService bootstrap complete … tracked: 1, adopted: false. - Lanes reseed on first use after the restart. Between 15:33 and 15:38 UTC, fra1 (×2), nbg1 (×2), hel1 and ash1 log
seeded a lane from its on-chain watermark; this node had no local record of having paid on it. - Then a rejection, 17:04:48–49 UTC (during a client bundle pull that proxy-warmed through lon1 and fra1):
- lon1 seeds its lane to fra1 (
0xa43d…, amount 109931, bytes 11,503,658,155), then its lane to nbg1 (0x6B82…, amount 44564, bytes 4,656,260,497). - 0.5 s later nbg1 stops lon1's stream of
0008f8d2…withoutcome=stopped reason=voucher_rejected bytes=24014(Tempod6f169e4ab9c3e215285eb6099b15536). - lon1 logs WARN
node-origin: upstream rejected our voucher on terms this lane cannot recover from; suppressing the provider for a bounded window … reason=BytesRegression(pool0x32396dbd…). On lon1,decdn_node_pull_voucher_rejected_totalanddecdn_node_pull_pool_wedged_totaleach go +1. - In the same second, nbg1 also stops fra1's upstream stream of
91336a2a…withvoucher_rejected(Tempo2de2c0950a6a772b3f218b9486b44f81, pool0x355dd164…).
- lon1 seeds its lane to fra1 (
- Concurrent double seed. At 17:17:36 UTC, hel1 seeds the same lane (pool
0xac2c…, provider nbg1) twice, 33 ms apart, from two concurrent streams. - Fleet rate.
decdn_serve_stream_voucher_rejected_totalrose by 41 over 7 days: nbg1 10, ash1 9, bcl 8, fra1 6, lon1 6, hel1 2.
Questions
- Why is the local lane record missing? The pool row survives, and these lanes carry GBs of prior payment. Yet the first use of each lane after a restart finds no row.
reseed_lane_from_chain(crates/node/src/buyer_channel.rs~L781) names only "a store reset" or "a partially-restored store" as the reach. So either lane progress is not durable across a restart, or the rows are keyed so a restarted node cannot find them. - Why is the known gap terminal? The same doc already says the seed sits below any unredeemed voucher, and "rejects this node's first vouchers until the lane catches up". But
node_origin(crates/node/src/node_origin/mod.rs~L2660) classifiesBytesRegressionas "our accounting drifted" and suppresses the provider. So each seeded lane costs a rejected stream plus a suppression window, and the seller delivers bytes that no voucher pays for.
Proposed
- Find why lane rows are missing after a restart, and make lane progress durable.
- On a
BytesRegressionright after a chain seed, adopt the seller's anchor (the resume-bundle path, feat(client-pull): persisted peer knowledge base for probe-less client fetch #1946) instead of suppressing the provider. - Seed each lane once when concurrent streams race to seed it.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsDone
Activity
altanoruc commentedon Sep 30, 2026
Reseeds keep happening all afternoon; no further BytesRegression since 17:04
seeded a lane from its on-chain watermark; this node had no local record of having paid on itcounted per hour, 15:00–20:40 UTC. The fleet restarted ~15:27.pool_id=0xac2c614a… provider_addr=0x797e18ae…(lon1),amount=812 bytes=81503680, inside a clientserve_streamforbaa10b83…. That's more than 3 h after the restart.upstream rejected our voucher … BytesRegressionhas not recurred between 17:10 and 20:40, anddecdn_node_pull_voucher_rejected_totalshows only lon1's one from 17:04. So most reseeds land at or above the seller's anchor. The rejection needs the lane state described in the body: prior unredeemed payment above the on-chain watermark.🤖 Generated with Claude Code
thiras commentedon Oct 5, 2026
Findings
Q1: why the local lane record is missing
Lane progress is durable. The record goes missing because a buyer-table schema bump renames the table.
Every reseed wave follows a boot that logged
BuyerPoolService bootstrap complete tracked=0 adopted=true, fleet-wide, in the same second:c0406912(#2244)b2053825(#2305)_v6getWatermarkwhen it is first used. That can be hours later, as at hel1 18:52.tracked=1, so it is not the cause.0xac2c…, fra1→lon1 and fra1→nbg1 on0x355d…, and ash1→bcl on0x1f86….tracked=1) produced no reseeds.Under the pre-launch "no migrations" rule this is expected, so nothing needs fixing here.
Q2: why the gap is terminal
(B0, A0)counts only redeemed vouchers, so it sits below the seller's unredeemed anchor(B1, A1).A1while its bytes are still belowB1.lane.rsadvance_presignedthen rejects withBytesRegressionand attaches the anchor as a watermark bundle.heal_watermark_desynchad no heal forBytesRegression. The drive ended, and node-origin suppressed the provider.Q3: double seed
Harmless apart from one extra
eth_calland a duplicate INFO line.Fix
#2313:
getWatermarkread has a 10 s timeout.One case remains. If the buyer's amount lands exactly on
A1, the seller's equal-amount arm rejectsBytesRegressionwith no bundle (#1699 rule 4), and nothing can heal that. It is left open pending a decision on attaching the bundle there.The "#1946" reference in the issue body points at the peer-store PR, not at a resume-bundle path.
fix(node): share a lane's watermark read across its seed queue and pr…