Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-2442

When an error is thrown on write and another error is thrown on process during retry, the job gets in a infinite loop and never finishes.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 4.1.0, 4.0.2, 3.0.10, 4.1.0.M1
    • Component/s: Core, Retry
    • Labels:
      None

      Description

      Job get in a infinite loop when an exception is first thrown during write and a second exception is thrown during the retry on processing the first item of the chunk.

      In attachment, maven project with a job test case with commit-interval = 5 and skip-limit=3

      • read 5 String from ListItemReader
      • process String - increment count item processed - throw an exception if count = 6 (first process after first exception)
      • write items - throw an exception on first chunk

      It seems inputs is never set to busy=false in method scan of FaultTolerantChunkProcessor. (output is never empty)
      For now I can't see where the problem come from...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mbenhassine Mahmoud Ben Hassine
                Reporter:
                ygendre Yoann GENDRE
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: