Skip to content

bug: a failed start leaves its background tasks running #141

Open

Description

@ovitrif

Node::start spawns chain sync, gossip and pathfinding tasks before it resolves and binds the listening addresses. If either step fails, start returns the error (InvalidSocketAddress or the resolve error) with is_running still false. The spawned tasks keep running, and Node::stop returns NotRunning without signalling them.

Steps:

  1. Configure a listening address that is already in use, or one that does not resolve.
  2. Call Node::start and get the error.
  3. Call Node::stop → NotRunning. Chain sync keeps running and can still persist.

Expected: a failed start stops the work it spawned, or stop shuts it down.

The same order is on main. Raised in #140 (comment), where the VSS write fence keeps a rebuild from being overwritten by these tasks' writes.

Activity

  1. added theissue type on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions