spring-projects / spring-projects/spring-batch
GracefulShutdownFunctionalTests.testStopJob fails intermittently due to a race condition
Open
Nobody has claimed this yet.
in: build
type: bug
- Dominant language
- Java
- Stars
- 3k
- Forks
- 2.5k
- Avg merge
- 6d 53m
- Merged PRs (30d)
- 3
Description
The resolution of #5217 has reduced the risk of race conditions on graceful shutdown, but does not seem to remove it completely (as the test is still failing intermittently).
This issue to investigate further.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with GracefulShutdownFunctionalTests.testStopJob and read the resolution of #5217 to understand the existing shutdown handling. Reproduce the intermittent failure and trace the race condition; done means the test no longer fails intermittently during graceful shutdown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100