-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
SchedulerFactoryBean no longer sets the job store's DataSource
when the job store class has been customized
#27709
Comments
I agree that this is a regression in terms of effective behavior for the use case described in the Spring Boot issue; however, if the user was previously specifying Thus, if the user wants to use I'm not saying we will not revert that the change (that's currently undecided). Rather, I'm pointing out that the user configuration for an explicit job store type was previously (silently) ignored. @jhoeller, thoughts? |
From my perspective, let's put a corresponding note into the documentation. Allowing for custom variants of |
New behaviour is very confusing. I have updated spring-boot-starter-parent and couldn't run my project for several hours because "DataSource name not set" message appeared (And nothing that could help solve the issue). So, maybe this message should be more clear. |
org.quartz.jobStore.class=org.springframework.scheduling.quartz.LocalDataSourceJobStore |
@wxz0107 Will that fix the problem? Will it get the spring.datasource as the quartz data source? |
yes,i use springboot 2.5.7, it work by this configuration |
Oki, I upgraded to Springboot 2.6.1 and it was failing due to the same error. |
I had the same problem when upgrading from Spring Boot 2.5.6 to 2.6.1. |
I use it clustered too. |
I've got it running now. I still have the jobStore properties isClustered and driverDelegateClass in place but removed the jobStore.class. The thing that confused me in the first place was the Quartz documentation for clustering: |
Spent a lot of time on this... Apparently, if you want |
I modified the QuartzConfiguration file and it works normally. Why is that?
It's my opinion!
If my opinion is correct, can you explain the inner action of number 2 in detail? |
This is a regression in 5.3.13 caused by #27560. It was originally reported as a Spring Boot issue.
The text was updated successfully, but these errors were encountered: