Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
QuartzScheduler.shutdown hangs on Windows #448
We have a Java 8 application, that we test on Java 8 and 11. It uses Quartz 2.3.1 and is built with Maven 3.6.1.
The hang happens when both running tests concurrently, and non-concurrently. See further comments below ...
We are using the maven-surefire-plugin 3.0.0-M3 to run our tests. On Windows 10, when we have configured it to run tests in parallel using:
<configuration> <forkCount>2C</forkCount> <reuseForks>true</reuseForks> </configuration>
We find that when running our test-suite Quartz can cause our application to hang on shutdown. When this happens we can see that there are two JVM forks, each running tests, and one JVM (launcher) which is coordinating. The stack traces from the two JVMs running tests both show that Quartz has hung when calling
Looking at the Quartz
Please advise, how can we resolve this bug?
Below are the stack traces:
Tests VM 1
Tests VM 2
Launcher (coordinator) VM
I am afraid to report that after reducing our tests to running linearly in a single JVM fork which is not reused from test to test, we are still experiencing the same shutdown issue occasionally:
Below is the stacktrace from running in a single JVM with no other concurrent tests.