Skip to content

docs: node release gate does not wait for detached work #2003

Description

@ovitrif

The kdocs on releaseHandle and awaitNodeRelease in LightningService.kt say free_node returns only once the node's background tasks drain, and that this gate keeps a rebuild or storage wipe from overlapping the old node's work.

Since ldk-node 0.7.0-rc.81, Runtime::shutdown returns after its bounded drain while work is still running and hands the runtime to a reaper, so after a timed-out stop the gate returns while detached work can still run.

Expected: the kdocs say the gate waits until free_node returns, and that a timed-out stop can return while detached work still runs.

Raised in #1999 (comment); to be fixed with the next ldk-node bump.

Activity

  1. added this to the 3.2.0 milestone on Nov 23, 2026
  2. self-assigned this
    on Nov 23, 2026
  3. 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

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions