-
Notifications
You must be signed in to change notification settings - Fork 2.4k
MapStepExecutionDao throws an OptimisticLockingFailureException [BATCH-1778] #1812
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Dave Syer commented Are you saying this is related to BATCH-1774? Are there any other exceptions logged? Any reason you can't use an in-memory RDBMS? |
Yann Moisan commented
|
Dave Syer commented It is interesting that you only see this on the multi-core and the IBM JRE. What about the Sun JRE on AIX?
Maybe you do need it then :) H2 is very lightweight and has far more love and a more careful implementation than a thing I threw together essentially for testing purposes. |
Philippe Mouawad commented Hello, I faced the same issue with exact same Exception today on Linux RH 5 and Sun/Oracle JDK 1.6u16 64 bit with following configuration: Switching to org.springframework.batch.core.repository.support.JobRepositoryFactoryBean fixed issue. Documentation http://static.springsource.org/spring-batch/apidocs/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.html says: I was in multi-threaded step without splits and I faced the issue. Regards |
The |
Yann Moisan opened BATCH-1778 and commented
Hi,
I use a multi-threaded step (via a ThreadPoolTaskExecutor) and I encountered an unexpected OptimisticLockingFailureException.
According to the javadoc of class MapJobRepositoryFactoryBean, it should work (Not suited for use in multi-threaded jobs with splits, although it should be safe to use in a multi-threaded step).
Here is the configuration of the job repository :
FYI, I've already encountered a strange behaviour, cf https://jira.springsource.org/browse/BATCH-1774.
Affects: 2.1.7
1 votes, 1 watchers
The text was updated successfully, but these errors were encountered: