Spring Batch
  1. Spring Batch
  2. BATCH-1541

Make MapJobRepository work for multi-threaded steps and jobs

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 1.0.0
    • Fix Version/s: 2.1.1
    • Component/s: None
    • Labels:
      None

      Description

      Since only the update of the ExecutionContext in a Step is really sensitive to the transaction boundary, and in a multi-threaded step there is usually no state in the context it should be possible to tweak the Map*Dao to behave correctly in a concurrent environment. There are three things that break: updating a step execution in a multi-threaded step, saving a step execution in a multi-threaded split, and saving a job execution in a multi-threaded launcher.

        Activity

        Hide
        Dave Syer added a comment -

        Fixed with various tweaks to the Daos. Mostly concerned removing the transaction proxy collections in favour of simple concurrent collections.

        Show
        Dave Syer added a comment - Fixed with various tweaks to the Daos. Mostly concerned removing the transaction proxy collections in favour of simple concurrent collections.
        Hide
        Dave Syer added a comment -

        See also BATCH-1542

        Show
        Dave Syer added a comment - See also BATCH-1542

          People

          • Assignee:
            Dave Syer
            Reporter:
            Dave Syer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 6d
              6d
              Remaining:
              Time Spent - 2d Remaining Estimate - 4d
              4d
              Logged:
              Time Spent - 2d Remaining Estimate - 4d
              2d