Fix race condition in scheduler and quartz's ConcurrentExecutionTest #10444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR[1] ran into an unrelated failure[2] which appears to be a race condition in the
ConcurrentExecutionTest
. The PR here tries to prevent that race. There were 2ConcurrentExecutionTest
tests, one inquartz
extension and one inscheduler
. I updated them both given that they both are doing the same logic.Having said that, there might be more going on here? The reason I say that is, this exception stacktrace of the failure:
Notice that it says
io.quarkus.quartz.test.ConcurrentExecutionTest.testNonconcurrentExecution Time elapsed: 1.987 s
. I can't see how that test can take anything less than 2.x seconds (given theLATCH
and the schedule on theconcurrent()
method). Perhaps the JUnit5 reporting is at fault or maybe there indeed is some other issue going on?[1] #10442
[2] https://github.com/quarkusio/quarkus/pull/10442/checks?check_run_id=832968580