Skip to content

node: admit-path chain reads have no timeout, so a hanging RPC skips the getAuthorization fallback #2271

Closed

Description

@thiras

Summary

The admit-path chain reads have no per-call timeout, so a hanging RPC provider makes admission hang without a log line. While the call hangs it never returns an error, so the stale-registration fallback added in #2270 (#2220) never runs.

  • ResolvingPoolView::signer_authorization calls self.contract.getAuthorization(pool_id, signer).call().await (crates/node/src/payment_settlement.rs ~L965) with no timeout. The admit getPool read in the same view has the same shape.
  • The alloy HTTP provider has no request timeout of its own. The chain watchers bound their calls with chain_events::timed (crates/node/src/chain_events/mod.rs ~L134, DEFAULT_RPC_CALL_TIMEOUT). The admit path does not use it.

Found by the #2270 review.

Proposed

  • Wrap the admit getAuthorization and getPool reads in timed(...), so a hang becomes a fault. The fault then takes the existing paths: the cached-registration fallback, or a PoolUnconfirmed refusal.
  • Add a test with a provider that never answers: admission ends within the timeout and falls back.

Related, smaller

  • payment_settlement.rs ~L1514 logs the anyhow::Error from plan_lane with sanitize_rpc_display, which prints only the outermost context and drops the cause. Use sanitize_err_chain instead.
  • sanitize_rpc_display prints only the top-level Display of an alloy error. For a transport fault that is reqwest's error sending request for url (…). Once the URL is stripped, the log says error sending request and loses the class (timeout, connection refused, DNS, TLS), which sits in the source() chain. Add a helper that walks source() and strips URLs, or log through anyhow::Error::new(err) and sanitize_err_chain. The redact.rs docs promise that the class survives, which is not true at these sites.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Oct 1, 2026
  2. added
    kind:bug
    rust
    area:node
    on Oct 1, 2026
  3. removed their assignment
    on Oct 1, 2026
  4. self-assigned this
    on Oct 1, 2026
  5. altanoruc commented on Oct 3, 2026

    @altanoruc
    Contributor

    Seen on testnet: bcl's RPC provider timed out admit getAuthorization while bcl was serving pull-through fills

    2026-10-03, bcl (instance="bcl"). bcl's RPC endpoint is on a free plan and returned error code 30: Request timeout on the free plan, please upgrade to paid plan for about 15 minutes:

    UTC target message
    13:02:08 chain_events::multiplexed_poller get_block_number timed out after 10s
    13:13:04 blacklist_watcher re-enumeration failed (code 30)
    13:13:14.86 payment_settlement (span serve_stream, peer lon1, signer 0x797e…) admit getAuthorization failed; using the last cached registration (code 30)
    13:13:16.62 payment_settlement (span serve_stream, peer hil1, signer 0xCd21…) same
    13:14:39.01 payment_settlement (span serve_stream, peer hil1) same
    13:18:18–13:18:21 capacity-bond registry, slash watcher, alloy_provider::blocks resync / failed to fetch block (code 30)

    In that window this client (SDXL run 10) logged a cluster of stalls: lon1 at 13:12:30, then bcl at 13:12:34, 13:12:35, 13:13:01, 13:13:14 and 13:13:15 (no verified progress for 10s, several with landed=49152), and bcl no terminal signal after the voucher write failed at 13:13:17.

    In this case the provider returned an error, so the fallback ran. Each admit getAuthorization was still awaited inline in serve_stream until the provider gave up. Those calls were for node-to-node fills (lon1 and hil1 buying from bcl), so the client stalls line up in time but are not proven to come from these exact streams. The bcl client stalls in run 13 (13:52:29–13:53:06) have no bcl log lines at all.

    It supports both proposals: a timed(...) bound on the admit reads, and #2156 (fallback RPC URLs) for a node whose single provider throttles.

    🤖 Generated with Claude Code

  6. added a commit that references this issue on Oct 5, 2026
    e2413d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodekind: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