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

exception on process while recovering from rollback on write causes deadlock [BATCH-2302] #1301

Closed
spring-issuemaster opened this issue Sep 12, 2014 · 0 comments
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Sep 12, 2014

zyro opened BATCH-2302 and commented

when a chunk is throwing an exception during process while it is recovering from an exception/rollback on write, i am facing a reproducible deadlock.
seems the second-run processing is then tried 3 times (RetryTemplate default?) and then the commitCount keeps just growing with the logs showing some kind of loop involving constantly busy inputs around https://github.com/spring-projects/spring-batch/blob/master/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedTasklet.java#L81.

example project based on batch getting started guide showing the problem attached (gradle build, 2.0 wrapper included).

thanks, zyro


Affects: 3.0.1

Attachments:

Issue Links:

  • BATCH-2442 When an error is thrown on write and another error is thrown on process during retry, the job gets in a infinite loop and never finishes.

Referenced from: commits 8df217a, 5b056e8

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.