Skip to content

fix(client): a fatal lane build drops the rest of its batch, and an escrow in it goes unnamed #2508

Closed

Description

@thiras

Problem

The acquire loop moves every lane build that is ready into one batch (scheduler.rs:4082). When one result in the batch is fatal, the loop returns at once (scheduler.rs:4098) and drops the rest of the batch.

Those results are already out of connecting, so the drain of late builds (#2500) never sees them. If a second build in the same batch ended with an untracked escrow, its tx is lost with no log line. A shared store failure, such as a full disk, can fail two refills at the same moment.

Fix direction

Before returning a fatal batch result, fold each remaining result in the batch through the same escrow check drain_builds uses: a result that escrow_untracked matches is added to the error as context.

Checks

  • Two builds that are ready in the same batch, each with an untracked escrow, give one error that names both txs.

Found in the #2500 review (silent-failure pass). This behavior existed before #2500.

Activity

  1. added
    kind:bug
    rust
    prio:low
    area:payments
    on Oct 17, 2026
  2. thiras commented on Oct 17, 2026

    @thiras
    ContributorAuthor

    Another way to hit this, from the #2506 review: the batch is [local fault, EscrowUntracked]. For example, a full disk fails build X's seed_lane write (fatal as a local disk fault) in the same sweep where build A's add_deposit fails after a mined topUp. The fetch reports only the disk fault, so the operator frees space and re-runs, which escrows again. The fix direction here covers it: fold each remaining escrow_untracked result in the batch into whatever fatal error the loop returns, not only into another escrow error.

  3. self-assigned this
    on Oct 18, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 18, 2026
  5. moved this from In progress to Done in deCDNon Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:paymentskind:bugprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions