Issue Details (XML | Word | Printable)

Key: BATCH-682
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dave Syer
Reporter: Dave Syer
Votes: 0
Watchers: 0
Operations

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

Use SoftReference and/or expiry to store entries in RetryContextCache implementation(s)

Created: 23/Jun/08 04:35 AM   Updated: 01/Oct/08 05:53 AM
Component/s: Infrastructure
Affects Version/s: 1.0.1
Fix Version/s: 2.0.0.M2

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


 Description  « Hide
Use SoftReference and/or expiry to store entries in RetryContextCache implementation(s). If the map-based cache is used in a multi-VM environment, stale cache entries can easily be accumulated inadvertently because the successful processing of a previously failed item happened on a different node than the original failure. A good start would be to use SoftReferences in the map-based implementation. Expiry and more complicated features would be best left to mature cache technologies, and custom implementations of the RetryContextCache interface.

 All   Comments   Work Log   Change History   FishEye   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Robert Kasanicky added a comment - 01/Oct/08 05:53 AM
MapRetryContextCache is now backed by Map<Object, SoftReference<RetryContext>>

Robert Kasanicky added a comment - 01/Oct/08 05:53 AM
reassigned for review