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
Please do a quick search on Github issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
JobExecution getJobExecution(@nullable Long executionId) return null when use MongoDB as JobExplorer
Environment
Java 17, Spring Batch 5.2, MongoDB 4.4.15-15
Steps to reproduce
Steps to reproduce the issue.
Expected behavior
The method should return JobExecution
Minimal Complete Reproducible example
The issue is caused by
The input argument is the executionId (4), not id (67486c0b30339b645f463079) in MongoDB, the code above use "this.mongoOperations.findById" to find, then nothing is found.
The code should be changed to something like:
weiz-cn
changed the title
JobExecution getJobExecution(@Nullable Long executionId) return null when use MongoDB as JobExplorer
JobExecution getJobExecution(@Nullable Long executionId) return null when using MongoDB as JobExplorer
Nov 29, 2024
Please do a quick search on Github issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
JobExecution getJobExecution(@nullable Long executionId) return null when use MongoDB as JobExplorer
Environment
Java 17, Spring Batch 5.2, MongoDB 4.4.15-15
Steps to reproduce
Steps to reproduce the issue.
Expected behavior
The method should return JobExecution
Minimal Complete Reproducible example
The issue is caused by
spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MongoJobExecutionDao.java
Line 129 in 18fe8c7
From my MongoDB, BATCH_JOB_EXECUTION collection, I saw:
The input argument is the executionId (4), not id (67486c0b30339b645f463079) in MongoDB, the code above use "this.mongoOperations.findById" to find, then nothing is found.
The code should be changed to something like:
The text was updated successfully, but these errors were encountered: