[jboss-jira] [JBoss JIRA] (WFLY-10584) Timer repeats uncontrolled
Tomasz Adamski (Jira)
issues at jboss.org
Sun Mar 10 20:21:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-10584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomasz Adamski reassigned WFLY-10584:
-------------------------------------
Assignee: Tomasz Adamski (was: Jörg Bäsner)
> 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: Tomasz Adamski
> Priority: Major
> 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 - 1) 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}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list