-
Notifications
You must be signed in to change notification settings - Fork 2.4k
BATCH-2711: Fix JobParameterBuilder not to overwrite new parameters with old ones #630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In a previous commit, when rerun a previously failed job with new parameters they are replaced with previous ones. This problem has happened since commit b2f8f7f. So this commit fix the issue and, also keep the purpose of previous commit providing public method to add JobParameters to the builder.
@peterminhk Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@peterminhk Thank you for signing the Contributor License Agreement! |
Once this PR will merge, which version of Spring Batch core have these changes?? |
@peterminhk |
Hi, This issue is planned to be fixed in 4.0.2 and 4.1.0.RELEASE. Kr, |
Please, before releasing this PR, take a look at my comments in this JIRA issue: https://jira.spring.io/browse/BATCH-2711 All in all, I think that the PR does not completely solve the problem, because it fails to implement some use cases. I argued it with full details in the issue above. |
@aritzbastida ok thank you for all the details! I will take a look before merging the PR. |
Thanks! Keep me posted! |
Hi, As said in JIRA, the method For this reason, I'm closing this PR. Thank you @peterminhk for your contribution anyway! Br, |
In a previous commit, when rerun a previously failed job with
new parameters they are replaced with previous ones.
It is somewhat critical because once failed, there is no way to run a job changing its parameter(s), unless change the status of the job manually from DB.
This problem has happened since commit
b2f8f7f.
So this commit fix the issue and, also keep the purpose of previous
commit providing public method to add JobParameters to the builder.
related JiRA ticket: https://jira.spring.io/browse/BATCH-2711