KEMBAR78
Proper default value for skipLimit · Issue #4661 · spring-projects/spring-batch · GitHub
Skip to content

Proper default value for skipLimit #4661

@samuelstein

Description

@samuelstein

Recently I stumbled over the default value of the skipLimit in the class FaultTolerantStepBuilder. It is set by default to 0.
If you don't use a SkipPolicy and configure it instead with skip(Exception.class) it is very easy to forget setting the additional property skipLimit.
Could you provide a more suitable default value?
My suggestion would be Integer.MAX_VALUE.
What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions