Issue Details (XML | Word | Printable)

Key: BATCH-590
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robert Kasanicky
Reporter: Robert Kasanicky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Batch

broken rollback/buffering in JdbcCursorItemReader

Created: 16/Apr/08 06:54 AM   Updated: 07/Aug/08 10:07 AM
Component/s: Infrastructure
Affects Version/s: 1.0.0
Fix Version/s: 1.0.1

Time Tracking:
Not Specified


 Description  « Hide
The reader keeps moving the result set cursor while returning items from the buffer (after rollback). This means after next commit the buffer is cleared and some items from the chunk following the rollbacked chunk are skipped e.g.

read -> 1
commit
read -> 2
rollback
read ->2
commit
read -> 4 // 3 was skipped during re-reading 2

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Robert Kasanicky added a comment - 16/Apr/08 07:44 AM
fixed the buffering issue in JdbcCursorItemReader and added a more thorough rollback test for all readers

Dave Syer added a comment - 07/Aug/08 10:07 AM
Assume closed as resolved and released