EngineStateMonitor#TIMER instance not created with daemon thread #915
Labels
good first issue
Good for newcomers
kind/bug
Categorizes issue or PR as related to a bug.
severity/mid
Marks a bug as having a noticeable impact but with a known workaround
Description
As part of our build, we're starting our spring-boot app (which starts InMemoryEngine), running all of our tests and then stopping the app with spring-boot-maven-plugin. However, our doesn't gracefully finish due to a WAITING non-daemon thread.
Analyzing the code, we've identified that it's the EngineStateMonitor#TIMER instance is created with default Timer() constructor which starts the TimerThread as non-daemon.
We do shutdown the engine
ZeebeTestEngine#stop
and a clientZeebeClient#close
.Expected behaviour
TIMER instance needs to be created with a daemon thread
TIMER = new Timer(true)
so that the app shuts down gracefully.Or make sure stopping the test engine also stops the TIMER instance and frees up the resources.
The text was updated successfully, but these errors were encountered: