Results 1 to 2 of 2

Thread: Restartibility

  1. #1
    Join Date
    Oct 2009
    Location
    London
    Posts
    28

    Default Restartibility

    Hi Guys,

    I have been taking a look at spring batch's restartibility but not sure if it supports the following use cases:

    a. I upload a file and one line item in the file fails business validation and processing stops. Then user is notified of error and error is corrected and uploaded again. With restartability in spring batch, would start processing the file all over again or would it start from where it stopped?

    b. I upload a file and there are several business logic validation errors or format problems for several lines but are skipped and process completes. User is notified and corrects the few errors and submits file again for processing. Would spring batch automitcally process just the items that failed previously or would it start all over again?

    Your assistance on this would be highly appreciated. Thanks.

  2. #2
    Join Date
    Feb 2008
    Posts
    488

    Default

    a. When a file fails, by default it restarts on the chunk where it left off.

    b. There isn't a way to for the system to automatically process just the records that skipped. If you want this functionality, you may want to have some alternative processing for bad records such as writing them out to a separate file or putting them in the database. Then you can clean up just those records later.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •