Spring Batch
  1. Spring Batch
  2. BATCH-532

StepExecutionListener can influence exit status but not status of step execution

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Component/s: Core
    • Labels:
      None

      Description

      StepExecutionListener can influence exit status but not status of step execution. The exit status can be downgraded from COMPLETE to FAILED by returning FAILED from the afterStep() callback. But the BatchStatus in the stepExecution is unchanged, so it looks as if the step was successful. It's a hard decision to decide how to fix this. I suggest that StepExecutionListener should be allowed to throw an exception to signal a failure, and treat that as a normal way for steps to fail, instead of trying to map exit codes to statuses.

        Activity

        Hide
        Robert Kasanicky added a comment -

        @Hiren: I'd suggest using the trunk version - 1.0.1 is most likely to be released in less than 2 weeks from now, so you'll be back in safe position using official release reasonably soon.

        Show
        Robert Kasanicky added a comment - @Hiren: I'd suggest using the trunk version - 1.0.1 is most likely to be released in less than 2 weeks from now, so you'll be back in safe position using official release reasonably soon.
        Hide
        Hiren Shah added a comment -

        Thanks Robert!

        Show
        Hiren Shah added a comment - Thanks Robert!
        Hide
        Hiren Shah added a comment -

        How do i get the release 1.0.1? I don't see it anywhere?

        Show
        Hiren Shah added a comment - How do i get the release 1.0.1? I don't see it anywhere?
        Hide
        Robert Kasanicky added a comment -

        The 1.0.1 release should be out today.

        Show
        Robert Kasanicky added a comment - The 1.0.1 release should be out today.
        Hide
        Dave Syer added a comment -

        Assume closed as resolved and released

        Show
        Dave Syer added a comment - Assume closed as resolved and released

          People

          • Assignee:
            Robert Kasanicky
            Reporter:
            Dave Syer
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: