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 JobRepository#getJobNames() is not implemented by the only implementation of the interface, SimpleJobRepository. The default method simply returns an empty list.
As of Spring Batch 5, this method is used by JobRepositoryTestUtils.removeJobExecutions(), which became a no-op method, never removing any executions due to getJobNames() never returning any job names.
The app runs a job named job and then queries both the batch_job_instance table and the JobRepository for all job names. The query returns job as expected, the JobRepository returns nothing.
The text was updated successfully, but these errors were encountered:
Bug description
JobRepository#getJobNames()
is not implemented by the only implementation of the interface,SimpleJobRepository
. The default method simply returns an empty list.As of Spring Batch 5, this method is used by
JobRepositoryTestUtils.removeJobExecutions()
, which became a no-op method, never removing any executions due togetJobNames()
never returning any job names.Environment
Spring Batch 5.0.0-RC2
Steps to reproduce
JobRepository.getJobNames()
.Expected behavior
Names of jobs are returned.
Minimal Complete Reproducible example
demo1.zip
mvnw spring-boot:run
job
and then queries both thebatch_job_instance
table and theJobRepository
for all job names. The query returnsjob
as expected, theJobRepository
returns nothing.The text was updated successfully, but these errors were encountered: