TimerStartEvent with Time Cycle fires erratically

Description

I'm seeing a consistent issue with Time Cycles and TimerStartEvents in v5.17.0. The manifestation is that for a fixed repeat count (i.e. R5/PT1M) roughly the first half of the repeats will occur on the expected interval (1 minute in this example) and the remainder will occur in a very short time. This behavior is reproduceable for testing I've done with R10/PT5M, R5/PT1M, and other time cycle values, and I've got a unit test case that reproduces it. Here's the log for one run, with the Time cycle set to R10/PT1M. In this case, the first 6 iterations occur at the expected intervals, and the remainder (5 rather than the expected 4 iterations) occur within a second. See junit test below. Unit test includes log file of issue taken from an execution of the worlkflow, see enclosed R10PT1MRun.log.

Environment

Ubuntu Linux 15.06, Activiti deployed to Tomcat 8 configured as follows:
Server version: Apache Tomcat/8.0.15
15-Jun-2015 13:29:14.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 2 2014 19:25:20 UTC
15-Jun-2015 13:29:14.786 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.15.0
15-Jun-2015 13:29:14.788 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
15-Jun-2015 13:29:14.788 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.19.0-18-generic
15-Jun-2015 13:29:14.789 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
15-Jun-2015 13:29:14.789 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JAVA_HOME: /opt/jdk1.7.0_79/jre
15-Jun-2015 13:29:14.789 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_79-b15
15-Jun-2015 13:29:14.789 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
15-Jun-2015 13:29:14.790 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /opt/apache-tomcat-8.0.15
15-Jun-2015 13:29:14.790 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /opt/apache-tomcat-8.0.15
15-Jun-2015 13:29:14.796 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:/usr/share/java/jayatanaag.jar
15-Jun-2015 13:29:14.801 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties
15-Jun-2015 13:29:14.802 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
15-Jun-2015 13:29:14.803 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/opt/tomcat8/endorsed
15-Jun-2015 13:29:14.803 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/tomcat8
15-Jun-2015 13:29:14.804 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/tomcat8
15-Jun-2015 13:29:14.807 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/tomcat8/temp

Attachments

Assignee

Tijs Rademakers

Reporter

MarkV

Labels

None

Components

Fix versions

Affects versions

Priority

High
Configure