Bi-hourly CronTrigger
runs into infinite loop at daylight savings time boundary
#980
Open
3 tasks done
Labels
Things to check first
I have checked that my issue does not already have a solution in the FAQ
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
Version
4.0.0a5
What happened?
When using a bi-hourly
CronTrigger
as given below, starting at a point before the daylight savings time transition, the trigger fails to compute the sequence of next trigger times. It always returns the same static time+date.The output of the example code given below is:
Together with the aync scheduler logic here, this leads to an infinite loop, since the computed next fire time will never become bigger than
now
:The root cause is that the local time
1:00
really exists twice in the given timezone: Once before (01:00:00+01:00
) and once after the daylight savings time transition (01:00:00+00:00
).The trigger stays stuck on the occurrence after the transition.
How can we reproduce the bug?
Run this example
The text was updated successfully, but these errors were encountered: