Repository navigation
Conversation
Reloading a job execution from MongoDB returns each step saved on the job document twice: once from the embedded array and once from the step-execution collection. The embedded copy can be stale, and saving the reloaded execution writes both copies back, so the array grows by the number of steps on each reload and save. Before 90d8959, JobExecution.addStepExecutions replaced equal step executions. It now appends. JobExecutionConverter.toJobExecution no longer copies the array. The explorer still attaches the collection, as it does for JDBC, and saving a job execution still writes the array. Resolves spring-projects#5693 Signed-off-by: WooSeung Kim <wooseung.dev@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reloading a job execution from MongoDB returns each step saved on the job document twice: once from the embedded array and once from the step-execution collection. A completed two-step job reloads with step1 and step2 twice each. The embedded copy can be stale, still STARTING with read count 0 after the collection says COMPLETED with read count 5. Saving a reloaded execution writes both copies back, so four reload-and-save cycles of a two-step job return 4, 6, 8, and 10 steps.
JobExecutionConverter no longer copies the embedded array. The explorer still attaches the collection, as it does for JDBC, and saving still writes the array. 6.0.6 and 6.1.0 are affected. 5.2.6 is not, because addStepExecutions replaced equal steps before 90d8959.
Resolves #5693