Skip to content

Bug - Spring Boot Batch 2.0.4 (Spring Batch 4.0.1) Job parameter Overwrite #14036

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

Closed
jojoldu opened this issue Aug 10, 2018 · 2 comments
Closed
Labels
for: external-project For an external project and not something we can fix

Comments

@jojoldu
Copy link

jojoldu commented Aug 10, 2018

Hi
Update to Spring Boot 2.0 and use Spring Boot Batch.
But Sprinb Boot. I have a part that works differently than 1.5 (Spring Batch 3.0).
(Maybe the bug is right)

As far as I know, if there is a failed history in Spring Batch, when the same batch job is run
I know that you are using the job parameter of the failed job.
However, I know that if the same key and another value are passed to the Job parameter, it will be executed with the new value replaced.

But now it is not the latest version.
If there is a failure, the new value of the same key is not changed, and the job parameter of the failed job is always used.

So, if you use the latest version of Batch now, you should always delete the job meta table if there are any jobs that failed.
Otherwise, no matter how you change the Job parameter, only the old failed Job parameter will be used.

I found a problem in the Spring Batch code and sent a PR.
Spring Batch Github does not have an issue tab, so leave it here

Please share the review once you get in touch.
I have a lot of difficulties developing the service now.

@jojoldu jojoldu changed the title Spring Boot Batch 2.0.4 (Spring Batch 4.0.1) Job parameter Bug - Spring Boot Batch 2.0.4 (Spring Batch 4.0.1) Job parameter Overwrite Aug 10, 2018
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 10, 2018
@spencergibb
Copy link
Member

spencergibb commented Aug 10, 2018

Spring Batch uses https://jira.spring.io

@jojoldu
Copy link
Author

jojoldu commented Aug 10, 2018

Thanks.

@jojoldu jojoldu closed this as completed Aug 10, 2018
@snicoll snicoll added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

4 participants