Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry transaction in case of deadlock [BATCH-2452] #1150

Open
spring-issuemaster opened this issue Nov 11, 2015 · 0 comments
Open

Retry transaction in case of deadlock [BATCH-2452] #1150

spring-issuemaster opened this issue Nov 11, 2015 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Nov 11, 2015

Marrache Mickael opened BATCH-2452 and commented

I have multiple threads that concurrently launch jobs using a shared synchronous job launcher. For some reason, I get deadlock while issuing the INSERT statements for creating the job instances. The deadlock occurs even with a single INSERT per transaction because of the unique constraint defined on the JOB_INSTANCE table (on job name and job key). Ideally, I would like to avoid such deadlocks but I didn't find a solution. Inserting job instances in a well defined order is not possible. Therefore, I expect Spring Batch to retry the transaction instead of directly throwing the deadlock exception. However, it doesn't seem to be the case.


No further details from BATCH-2452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.