Issue Details (XML | Word | Printable)

Key: BATCH-345
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lucas Ward
Reporter: Lucas Ward
Votes: 0
Watchers: 0
Operations

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

Separation of Read and Write failure policies.

Created: 07/Feb/08 10:01 PM   Updated: 07/Aug/08 10:06 AM
Component/s: Core
Affects Version/s: 1.0.0.m4
Fix Version/s: 1.0.0.m5

Time Tracking:
Original Estimate: 1d
Original Estimate - 1d
Remaining Estimate: 1d
Remaining Estimate - 1d
Time Spent: Not Specified
Remaining Estimate - 1d


 Description  « Hide
There was originally a separation between 'TransactionValid' and 'TransactionInvalid' exceptions. We removed this before milestone 2 because at the time it seemed like exception handlers could discriminate between any number of types and decide on it's own what should cause the 'chunk to fail'. However, recent changes to the architecture have caused us to rethink that. Exceptions that happen on reading really need to be treated differently from those encountered while writing, generally because of transactions. Therefore, there really is a domain concept of 'read failures' and 'write failures' and policies that should know how to handle them.

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Lucas Ward added a comment - 25/Feb/08 03:16 PM
This was added as the ItemFailureHandler, it has two methods, which differentiates between read and write failures (write failures need the item)

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