Skip to content

node: after a restart a buyer lane reseeds from the on-chain watermark, the seller rejects it as BytesRegression, and node-origin suppresses the provider #2254

Closed

Description

@altanoruc

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… with outcome=stopped reason=voucher_rejected bytes=24014 (Tempo d6f169e4ab9c3e215285eb6099b15536).
    • 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 (pool 0x32396dbd…). On lon1, decdn_node_pull_voucher_rejected_total and decdn_node_pull_pool_wedged_total each go +1.
    • In the same second, nbg1 also stops fra1's upstream stream of 91336a2a… with voucher_rejected (Tempo 2de2c0950a6a772b3f218b9486b44f81, pool 0x355dd164…).
  • 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_total rose by 41 over 7 days: nbg1 10, ash1 9, bcl 8, fra1 6, lon1 6, hel1 2.

Questions

  1. 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.
  2. 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) classifies BytesRegression as "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

🤖 Generated with Claude Code

Activity

  1. added
    kind:bug
    rust
    area:node
    area:payments
    on Sep 30, 2026
  2. altanoruc commented on Sep 30, 2026

    @altanoruc
    ContributorAuthor

    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 it counted per hour, 15:00–20:40 UTC. The fleet restarted ~15:27.

    node 15–16 16–17 17–18 18–19 19–20 20–20:40
    ash1 1
    fra1 2 2
    hel1 1 2 2
    hil1 1
    lon1 3
    nbg1 2 2
    • Example, hel1 18:52:39: pool_id=0xac2c614a… provider_addr=0x797e18ae… (lon1), amount=812 bytes=81503680, inside a client serve_stream for baa10b83…. That's more than 3 h after the restart.
    • So the reseed is not a one-off after restart. Any lane first used after the restart reseeds on first use, whenever that happens.
    • upstream rejected our voucher … BytesRegression has not recurred between 17:10 and 20:40, and decdn_node_pull_voucher_rejected_total shows 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

  3. self-assigned this
    on Oct 5, 2026
  4. thiras commented on Oct 5, 2026

    @thiras
    Contributor

    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:

    Boot (UTC) Deploy Table change
    2026-09-30 11:10 c0406912 (#2244) renamed the buyer table
    2026-10-05 05:06 b2053825 (#2305) _v6
    • The new binary therefore starts with an empty store. Bootstrap adopts the on-chain pool with no lanes, and each lane seeds from getWatermark when it is first used. That can be hours later, as at hel1 18:52.
    • The 15:27 restart booted with tracked=1, so it is not the cause.
    • Lanes seeded on 09-30 reseeded again only after the 10-05 bump: hel1→lon1 and hel1→nbg1 on 0xac2c…, fra1→lon1 and fra1→nbg1 on 0x355d…, and ash1→bcl on 0x1f86….
    • The boots on 10-01, 10-02 and 10-03 (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

    1. The chain seed (B0, A0) counts only redeemed vouchers, so it sits below the seller's unredeemed anchor (B1, A1).
    2. The buyer prices its new spans from the lower seed. Its amount therefore passes A1 while its bytes are still below B1.
    3. lane.rs advance_presigned then rejects with BytesRegression and attaches the anchor as a watermark bundle.
    4. heal_watermark_desync had no heal for BytesRegression. The drive ended, and node-origin suppressed the provider.

    Q3: double seed

    Harmless apart from one extra eth_call and a duplicate INFO line.

    Fix

    #2313:

    • The payer rebases to the bundle, which is its own signed voucher. The bytes check runs under the ledger lock.
    • A bundle the ledger already covers is retried instead of failing.
    • Lane seeds are serialised per lane, and the getWatermark read has a 10 s timeout.

    One case remains. If the buyer's amount lands exactly on A1, the seller's equal-amount arm rejects BytesRegression with 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodearea:paymentskind:bugrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions