Skip to content
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

BATCH_JOB_SEQ never initialize [BATCH-2799] #801

spring-issuemaster opened this issue Mar 17, 2019 · 0 comments

BATCH_JOB_SEQ never initialize [BATCH-2799] #801

spring-issuemaster opened this issue Mar 17, 2019 · 0 comments


Copy link

@spring-issuemaster spring-issuemaster commented Mar 17, 2019

John Cao opened BATCH-2799 and commented

I have set spring.batch.initialize-schema = always;

every time when I start my app, without any Jobs start, batch-mysql.sql last line never run; however, the other batch sequence tables is working properly. This is so weird that the application always run into Exception, but when I manually run the last line, the exception (duplicate job id 0) is away.

INSERT INTO BATCH_JOB_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_JOB_SEQ)

Affects: 4.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.