-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
status: waiting-for-triageIssues that we did not analyse yetIssues that we did not analyse yettype: bug
Description
Bug description
When using a MongoJobRepository and AsyncTaskExecutor, starting a job leads to a WriteConflict on MongoDB.
Environment
Spring Batch Version: 6.0.1
Mongo Version: 8.0.11 and 8.0.12
JDK: tested with 17 and 23
Steps to reproduce
Use an asynchronous task executor, e.g. SimpleAsyncTaskExecutor. See link in example below.
Expected behavior
Job should start without failing with exception.
Minimal Complete Reproducible example
I forked the repo and built a minimal example based on the existing MongoDB tests here:
main...HaraldStanglMW:spring-batch:bug/mongodb-async
Please let me know if you would prefer a self-contained example project.
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageIssues that we did not analyse yetIssues that we did not analyse yettype: bug