Closed
Description
SystemCommandTasklet
does not propagate errors
If a command executed by SystemCommandTasklet
returns a non zero exit code, the system exit code is mapped to ExitStatus.FAILED. However, the overall step execution status is BatchStatus.COMPLETED, meaning the step (and the job) is completed successfully.
Environment
spring-batch 5.0.3
Steps to reproduce
Create a Job with a SystemCommandTasklet
where the system command executed will return a non zero exit code.
Expected behavior
The error should be propagated to the Step, and ultimately to the overall Job execution status.