Skip to content

FELIX-6839: Resolve lifecycle race condition in EventDispatcher start/stop sequence#513

Open
sahvx655-wq wants to merge 2 commits into
apache:masterfrom
sahvx655-wq:bugfix-eventdispatcher-lifecycle-race
Open

FELIX-6839: Resolve lifecycle race condition in EventDispatcher start/stop sequence#513
sahvx655-wq wants to merge 2 commits into
apache:masterfrom
sahvx655-wq:bugfix-eventdispatcher-lifecycle-race

Conversation

@sahvx655-wq

Copy link
Copy Markdown

This PR addresses a race condition in EventDispatcher that can occur during concurrent framework start/stop operations in the same JVM.

Updated startDispatching() to wait while the dispatcher is being stopped.
Ensures shutdown completes before a new dispatch thread is created, preventing inconsistent dispatcher lifecycle states.

@sahvx655-wq sahvx655-wq force-pushed the bugfix-eventdispatcher-lifecycle-race branch from 4395494 to aeab1b6 Compare June 17, 2026 09:35
@sahvx655-wq sahvx655-wq changed the title Resolve lifecycle race condition in EventDispatcher start/stop sequence FELIX-6839: Resolve lifecycle race condition in EventDispatcher start/stop sequence Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant