-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
has: minimal-exampleBug reports that provide a minimal complete reproducible exampleBug reports that provide a minimal complete reproducible examplein: corerelated-to: transaction-managementstatus: waiting-for-triageIssues that we did not analyse yetIssues that we did not analyse yettype: bug
Description
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:
- batch-execution-context-test.zip (14.13 kB)
Metadata
Metadata
Assignees
Labels
has: minimal-exampleBug reports that provide a minimal complete reproducible exampleBug reports that provide a minimal complete reproducible examplein: corerelated-to: transaction-managementstatus: waiting-for-triageIssues that we did not analyse yetIssues that we did not analyse yettype: bug