Skip to content

Inaccurate error message when using ResourcelessJobRepository with a partitioned step #4732

Open
@monnetchr

Description

@monnetchr

Bug description
The ResourcelessJobRepository cannot be used with a Partitioner:

[main] ERROR org.springframework.batch.core.step.AbstractStep - Encountered an error executing step step in job partitionJob
org.springframework.batch.core.JobExecutionException: Cannot restart step from STARTING status.  The old execution may still be executing, so you may need to verify manually that this is the case.

Steps to reproduce
Simply change spring-batch-samples/src/main/resources/simple-job-launcher-context.xml to use ResourcelessJobRepository and then run spring-batch-samples/src/test/java/org/springframework/batch/samples/partition/file/PartitionFileJobFunctionalTests.java

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions