Migration to spring-boot 4+ and spring-batch 6+ ... concurrency effects with OptimisticLockingFailureException #5121
ahoehma
started this conversation in
Migration Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm currently migrate my service from springboot 3.5.x to 4.0.0 and so also springbatch to 6+.
And I'm struggle little bit with the "new" setup :-)
One thing I can't get working is a random effect if I'm using my own BatchTaskExecutor.
My old configuration was like this:
Now I have this configuration. If I keep my own "batchTaskExecutor" then I have random "OptimisticLockingFailureException"
like this ...
I also need to remove "@EnableBatchProcessing" at all .. if not other effects happens .. i.e. database is not initialized ... because "BatchDataSourceScriptDatabaseInitializer " is also gone.
Where can I check for more docu about migration ... the 6+ version have a lot of deprecated classes etc. I can't find a clean example etc. May someone can guide me to a docu?
My main concern is that if I'm using the default "SyncTaskExecutor" is my rest-api (which starts my jobs) are still parallel?
Kind regards
Andreas
Beta Was this translation helpful? Give feedback.
All reactions