]
Dimitris Andreadis reopened JBAS-1926:
--------------------------------------
two timers executing at the same time in some conditions
--------------------------------------------------------
Key: JBAS-1926
URL:
http://jira.jboss.com/jira/browse/JBAS-1926
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: EJB2
Affects Versions: JBossAS-4.0.2 Final
Reporter: Grzegorz G?owaty
Assigned To: Nathan Pahucki
Fix For: JBossAS-5.0.0.Beta1, JBossAS-5.0.0.Beta4, JBossAS-4.0.4RC1,
JBossAS-4.0.4.CR2, JBossAS-5.0.0.CR1
Attachments: TimerImpl.java
Original Estimate: 1 hour
Remaining Estimate: 1 hour
This is the case of Stateless Session Bean implementing EJBTimedObject.
When timer task is scheduled to be executed on the fixed interval, let's say 10
seconds and the task is executing for more than 10 seconds let's say 1 minute the
scheduler doesn't start a new task every 10 seconds but waits for the execution to
finish. This guarantees (?) that only one task is executed at given time.
But when task fails with an exception retry policy makes it retry the job while the task
is still scheduled to be executed after fixed delay after failure. This causes the
situation in which (in the case of long running task) the retry task is still executing
and the next fire of the task starts executing. In result we have 2 tasks doing the same
job executing at the same time with some time offset only. Is this situation correct?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: