[ https://issues.apache.org/jira/browse/ARTEMIS-2926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17222176#comment-17222176 ]
ASF subversion and git services commented on ARTEMIS-2926: ---------------------------------------------------------- Commit e2c1848da4a7e44c09f58bbb4c7f6905b7642a7d in activemq-artemis's branch refs/heads/master from franz1981 [ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=e2c1848 ] ARTEMIS-2926 Scheduled task executions are skipped randomly Making Scheduled task to be more reliable when using scheduledComponent.delay() method and saving periodic tasks to be skipped although on correct timing > Scheduled task executions are skipped randomly > ---------------------------------------------- > > Key: ARTEMIS-2926 > URL: https://issues.apache.org/jira/browse/ARTEMIS-2926 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Broker > Affects Versions: 2.13.0 > Reporter: Apache Dev > Assignee: Francesco Nigro > Priority: Major > Time Spent: 3h 40m > Remaining Estimate: 0h > > Scheduled tasks extending {{ActiveMQScheduledComponent}} could randomly skip > an execution, logging: > {code} > Execution ignored due to too many simultaneous executions, probably a > previous delayed execution > {code} > The problem is in the "ActiveMQScheduledComponent#runForExecutor" Runnable. > Times to be compared ({{currentTimeMillis()}} and {{lastTime}}) are taken > inside the runnable execution itself. So, depending on relative execution > times, it could happen that the difference is less than the given period > (e.g. 1 ms), resulting in a skipped execution. -- This message was sent by Atlassian Jira (v8.3.4#803005)