citrusframework / citrusframework/citrus

Race between ctxt shutdown, after suite listeners and reporters

Open
#289 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.