spring-batch
spring-batch copied to clipboard
OptimisticLockingFailureException when stopping jobs [BATCH-1981]
Benoit Dupont opened BATCH-1981 and commented
When a lot of batches are executing with an asynchronous task executor, and I'm trying to interrupt them via SimpleJobOperator invoked from JMX, I've got an OptimisticLockingFailureException, see attachement for complete stack
Affects: 2.1.9
Reference URL: http://forum.springsource.org/showthread.php?134898-OptimisticLockingFailureException-when-stop-the-job-at-its-ending-stage
Attachments:
- stack.txt (2.41 kB)
Benoit Dupont commented
I got the same problem when doing the same use case when clicking on the button Stop All in Spring Batch Admin Console. Tell me if the stackTrace if enough, otherwise I'll try to create unit test reproducing the problem.
Thank you for opening the issue. Can you retry with the latest release of Spring Batch (5.0.2) and report back the results?