Issue Details (XML | Word | Printable)

Key: BATCH-408
Type: Bug Bug
Status: Closed Closed
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

Parallel job sample is prone to OptimisticLockingException

Created: 04/Mar/08 01:03 AM   Updated: 07/Aug/08 10:06 AM
Component/s: Samples
Affects Version/s: 1.0.0.m5
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
Parallel job sample is prone to OptimisticLockingException when using commons DBCP and Oracle (and probably other RDBMS, but not HSQL or Derby). The "toy" databases that we currently test with do not really support multi-threaded access. When you upgrade there are issues with optimistic locking exceptions. The exceptions are meaningful - they tell you that the step execution in the database is not accurately reflecting the current status of the job.


 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Dave Syer added a comment - 04/Mar/08 03:55 AM
Added a Semaphore to replace and extend synchronized block. This has introduced an additional mandatory dependency on backport concurrency utils, which could be removed by abstracting it if necessary later, or just by moving to java.util.concurrent for a later Java 5 release.

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