Skip to content

OptimisticLockingFailureException caused by jobExecutionDao.updateJobExecution(jobExecution); #5022

@ruudkenter

Description

@ruudkenter

I am preparing our codebase for spring-batch 6. One of my job(s), starts multiple steps in parallel.

Bug description
This line is causing a OptimisticLockingFailureException,all submitted threads call jobExecutionDao.updateJobExecution(jobExecution); concurrently, resulting in the exception.

Expected behavior
Not sure, but so is the author: // TODO check if this update is necessary

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions