You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
You need to configure another job repository implementation that supports batch-metadata. I am closing this issue now as I believe it answers your concern, but please add a comment if you need more support on this. Thank you.
I must admit the error message is confusing, there is no restart in that sample yet the message is mentioning restart. I will re-open this issue and change it into an enhancement.
fmbenhassine
changed the title
Cannot use ResourcelessJobRepository with Partitioner
Inaccurate error message when using ResourcelessJobRepository with a partitioned step
Dec 10, 2024
Bug description
The ResourcelessJobRepository cannot be used with a Partitioner:
Steps to reproduce
Simply change
spring-batch-samples/src/main/resources/simple-job-launcher-context.xml
to useResourcelessJobRepository
and then runspring-batch-samples/src/test/java/org/springframework/batch/samples/partition/file/PartitionFileJobFunctionalTests.java
The text was updated successfully, but these errors were encountered: