-
Notifications
You must be signed in to change notification settings - Fork 523
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
Exceptions during DST clock change #1876
Comments
It seems that |
It's a TIMESTAMP(3) as documented in the manual for a mysql db. And it's running the whole time without any problems. Exceptions occured only in that hour of the DST change.
|
May be related https://bugs.mysql.com/bug.php?id=40329 |
So you think that the problem might be fixed by using a timezone without DST? For example UTC?
And what about the "usingDbTime()" for the LockProvider? Should I then remove this to make sure UTC is used? |
It's always a good idea to run your servers in UTC. It's a bug in ShedLock, I was assuming that if I use UTC_TIMESTAMP UTC time will be used. Apparently that's not the case. Hopefully I will fix it till the next DTC. |
Hi Lukas, thanks for your quick reply! Greetings |
Hi, I tried to reproduce it and I failed. I don't doubt that the bug is there, I jsut do not have enough mental capacity to play with MySQl, try to reproduce it and then try the fix. So if anyone is willing to help, can you please try to reproduce it and try to find out how to rewrite the query (if possible). I was hoping in something like this
See this https://stackoverflow.com/questions/78941714/how-to-add-timestamps-in-utc |
Describe the bug
I have a spring boot application (version 3.2.2) and a task annotated like this using shedlock version 5.10.2
During clock change for DST I got exceptions like these for about an hour:
I'm not quite sure if the bug is due to Spring Boot's Scheduler annotation or if it's a shedlock bug. But from the stack trace, it seems that there's an sql exception when trying to insert a value into the shedlock table.
Expected behavior
Scheduler execution as usual every two minutes.
Actual behavior
Scheduler threw exceptions for about an hour then started working again as expected.
The text was updated successfully, but these errors were encountered: