Spring Projects Issues
Spring Projects Issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
**[Michael Minella](https://jira.spring.io/secure/ViewProfile.jspa?name=mminella)** commented 1. Does this issue persist in the 3.0.x branch? 2.2.x is no longer maintained. 2. How is this issue different from [BATCH-2403](https://jira.spring.io/browse/BATCH-2403) which you point out?
**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented [Michael Minella](https://jira.spring.io/secure/ViewProfile.jspa?name=mminella), 1. We're still on 2.2.7 so I haven't verified that yet. I'll upgrade and test this next week. 2. [BATCH-2403](https://jira.spring.io/browse/BATCH-2403) is ultimately about the noRetry...
**[Albert Strasser](https://jira.spring.io/secure/ViewProfile.jspa?name=your2fat)** commented Hi Erwin, You might be correct that we are looking at 2 different issues here. My assumption was that just checking if an exception was fatal (last...
**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented I can now also confirm that the problem is reproducible with Spring Batch 3.0.4. Attached you can find DEBUG level Spring Batch logging for an occurrence of...
**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented As a _temporary work-around_, we're now forcing a transaction flush (using `EntityManager.flush()`) from inside our ItemProcessor. This way Spring Batch will correctly retry or fail the batch...
**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented [Michael Minella](https://jira.spring.io/secure/ViewProfile.jspa?name=mminella), Can you given any feedback related to this issue? Given that if confirmed this is a critical bug I would say this has some priority.
**[Andrei Amariei](https://jira.spring.io/secure/ViewProfile.jspa?name=andrei.amariei)** commented Also affected by this issue. I attached [^step_succeeds_when_commit_fails.patch] that adds a failing test to _spring-batch-samples_ module, maybe it helps moving it forward.
**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented Thanks for that [Andrei Amariei](https://jira.spring.io/secure/ViewProfile.jspa?name=andrei.amariei)!
**[Andrei Amariei](https://jira.spring.io/secure/ViewProfile.jspa?name=andrei.amariei)** commented One concern I have with flushing is that it can add side effects to an unsuccessful _write_ phase. For example: * given inputs are entities and hibernate's...