spring-projects / spring-projects/spring-batch

GracefulShutdownFunctionalTests.testStopJob fails intermittently due to a race condition

Open
#5,308 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.