Repository navigation
Conversation
Contributor
|
Thank you for the PR, @quaff! Creating the step execution with its actual context in a single write makes sense: it saves a DB write per partition and avoids persisting an empty context first. I added a couple of inline comments for you to review. Moreover, Could you rework the PR along these lines? Happy to discuss if you see it differently. |
Contributor
Author
|
Updated, please review. |
quaff
force-pushed
the
patch-43
branch
2 times, most recently
from
October 13, 2026 06:30
58fcda8 to
674dd24
Compare
After this commit, step execution context can be created with actual context instead of creating empty one then updating it. Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
fmbenhassine
added a commit
that referenced
this pull request
Oct 13, 2026
- Add the missing `@since 6.1` tag to the new `createStepExecution` method of `JobRepository` and document the default behavior and the non-null context. Add javadoc and `@Override` to the implementation in `SimpleJobRepository`. - Add a test for the default fallback of the new method, for repositories that only implement `createStepExecution(String, JobExecution)`. - Add a test to `SimpleStepHandlerTests` that checks that on restart the new step execution gets a copy of the previous context without `BATCH_EXECUTED`, and that the previous context is left untouched. - Add a test to `SimpleStepExecutionSplitterTests` for the restart of a partition. - Revert the unrelated import changes in the tests.
Contributor
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.
After this commit, step execution context can be created with actual context instead of creating empty one then updating it.