Skip to content

Fix Shutdown Race - #26

Merged
btoms20 merged 2 commits into
mainfrom
misc-work
Sep 7, 2026
Merged

Fix Shutdown Race#26
btoms20 merged 2 commits into
mainfrom
misc-work

Conversation

@btoms20

@btoms20 btoms20 commented Sep 7, 2026

Copy link
Copy Markdown
Member

What?

This PR addresses the failing CI test due to a race condition in a slow to shutdown Node.

Changes:

  • Added, and storing, a pendingShutdown future in our shutdown flow that allows subsequent callers to join the already in flight shutdown, rather than return early.

Fixes:

LifecycleTests.swift

// Failed during a CI run with `node` equal to `.stopping` (not the expected `.stopped`)
@Test func stoppingFromTheEventLoopDoesNotDeadlock() async throws 

@btoms20 btoms20 self-assigned this Sep 7, 2026
@btoms20 btoms20 added the bug Something isn't working label Sep 7, 2026
@btoms20
btoms20 merged commit 89f576e into main Sep 7, 2026
31 of 40 checks passed
@btoms20
btoms20 deleted the misc-work branch September 7, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant