]
Jörg Bäsner updated WFLY-10584:
-------------------------------
Steps to Reproduce:
These steps can be applied on a RHEL system to reproduce the error:
# install a vanilla Wildfly 13.0.0.Final
# deploy the attached playground-jar.jar
# set the system timezone to {{Helsinki, Finland (EEST, UTC+03)}}
# set the system date to the 24th of March 2018 ({{sudo date +%Y%m%d -s
"20180324"}})
# set the system time to 23:59:30 ({{sudo timedatectl set-time 22:59:30}})
# start the server using the {{standalone.xml}} configuration
Timer repeats uncontrolled
--------------------------
Key: WFLY-10584
URL:
https://issues.jboss.org/browse/WFLY-10584
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 13.0.0.Final
Reporter: Jörg Bäsner
Assignee: Jörg Bäsner
Attachments: playground-jar.jar
Given an hourly timer like this:
{code}
@Schedule(hour = "*", persistent = false)
public void hourlyTimer(Timer timer) {
long methodEntryTime = System.currentTimeMillis();
ZonedDateTime nextTimeout =
ZonedDateTime.ofInstant(timer.getNextTimeout().toInstant(),
ZoneId.systemDefault());
logger.info("Call to hourly maintenance function completed in {} seconds,
next timeout at {}",
millis2secondsString(System.currentTimeMillis() - methodEntryTime),
nextTimeout);
}
{code}
Results in the Timezone [Europe/Helsinki] on the 24th or March 2018 at 23:00:00 LocalTime
in a next trigger of the same, see:
{noformat}
23:00:01,997 INFO [org.jboss.playground.PlaygroundAutoTimerBean] (EJB default - 10) Call
to hourly maintenance function completed in 0 seconds, next timeout at
2018-03-24T23:00+02:00[Europe/Helsinki]
23:00:01,998 INFO [org.jboss.playground.PlaygroundAutoTimerBean] (EJB default - 6) Call
to hourly maintenance function completed in 0 seconds, next timeout at
2018-03-24T23:00+02:00[Europe/Helsinki]
23:00:02,000 INFO [org.jboss.playground.PlaygroundAutoTimerBean] (EJB default - 7) Call
to hourly maintenance function completed in 0 seconds, next timeout at
2018-03-24T23:00+02:00[Europe/Helsinki]
23:00:02,001 INFO [org.jboss.playground.PlaygroundAutoTimerBean] (EJB default - 7) Call
to hourly maintenance function completed in 0 seconds, next timeout at
2018-03-24T23:00+02:00[Europe/Helsinki]
{noformat}