spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

OptimisticLockingFailureException when stopping jobs [BATCH-1981]

Open spring-projects-issues opened this issue 12 years ago • 2 comments
trafficstars

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:

spring-projects-issues avatar Mar 10 '13 08:03 spring-projects-issues

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.

spring-projects-issues avatar Mar 10 '13 08:03 spring-projects-issues

Thank you for opening the issue. Can you retry with the latest release of Spring Batch (5.0.2) and report back the results?

cppwfs avatar Jul 19 '23 13:07 cppwfs