Skip to content

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

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.

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