citrusframework / citrusframework/citrus
Race between ctxt shutdown, after suite listeners and reporters
Open
enhancement
prio-low
to-discuss
- Dominant language
- Java
- Stars
- 485
- Forks
- 155
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 6
Description
I understand that this issue duplicates or even causes #103.
Both the spring ctxt shutdown as well as the after suite notifications are being run in parallel in two different JVM shutdown hooks. Now interacting with ctxt beans while shutting down the ctxt at the same time is an error-prone race.
What seems to me as a potential solution to this problem is introducing an `@Order`ed race-free shutdown sequence moving the `AfterSuiteShutdownHook` to be a `ApplicationListener` participating in the spring ctxt shutdown.
@christophd?
Contributor guide
Assessment
This issue has not been assessed yet.