Skip to content

[Core] Synchronize event bus before use #2358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

mpkorstanje
Copy link
Contributor

We can not exclude the possibility that an event is published to the event bus
after test execution has completed. For example because the test framework may
have decided that a test case has timed out and is now terminating test
execution.

As such events from the pending testcase on the synchronized bus may race with
the events from the unsynchronized bus. This in turn may break the LinkedList
in the CanonicalOrderEventPublisher.

Fixes: #2288 (mabye??)

We can not exclude the possibility that an event is published to the event bus
after test execution has completed. For example because the test framework may
have decided that a test case has timed out and is now terminating test
execution.

As such events from the pending testcase on the synchronized bus may race with
the events from the unsynchronized bus. This in turn may break the `LinkedList`
in the `CanonicalOrderEventPublisher`.

Fixes: #2288 (mabye??)
@mpkorstanje mpkorstanje force-pushed the synchronize-event-bus-before-use branch from aca1759 to 5687ee9 Compare August 10, 2021 21:06
@mpkorstanje mpkorstanje merged commit 633d261 into main Aug 10, 2021
@mpkorstanje mpkorstanje deleted the synchronize-event-bus-before-use branch August 10, 2021 21:20
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.

[ERROR]AbstractTestNGCucumberTests.tearDownClass:53
1 participant