Skip to content

StepExecutionContext gets updated on transaction rollback #1145

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

Open
spring-projects-issues opened this issue Dec 4, 2015 · 0 comments
Open
Labels
has: minimal-example Bug reports that provide a minimal complete reproducible example in: core related-to: transaction-management status: waiting-for-triage Issues that we did not analyse yet type: bug

Comments

@spring-projects-issues
Copy link
Collaborator

Daniel Stuckert opened BATCH-2457 and commented

When an exception is thrown in a chunked step and the execution context has been updated while processing items the execution context gets updated. This causes a problem when information about the processed items has been stored in the context. The business transaction has been rolled back and the items have not been committed to the database, but the execution context does not reflect the rollback.

The expectation is that the execution context gets rolled back.

To reproduce the problem run the attached test

The read and write-count have a similar problem. They get updated as well when the transaction is rolled back.


Affects: 3.0.5

Attachments:

@fmbenhassine fmbenhassine added the has: minimal-example Bug reports that provide a minimal complete reproducible example label Mar 12, 2021
@fmbenhassine fmbenhassine changed the title StepExeuctionContext gets updated on transaction rollback [BATCH-2457] StepExeuctionContext gets updated on transaction rollback Mar 15, 2021
@fmbenhassine fmbenhassine changed the title StepExeuctionContext gets updated on transaction rollback StepExecutionContext gets updated on transaction rollback Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: minimal-example Bug reports that provide a minimal complete reproducible example in: core related-to: transaction-management status: waiting-for-triage Issues that we did not analyse yet type: bug
Projects
None yet
Development

No branches or pull requests

2 participants