roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Gilliland (JIRA)" <>
Subject [Roller-JIRA] Work started: (ROL-1294) Task scheduling is inconsistent due to use of java.util.Timer
Date Fri, 25 May 2007 22:45:55 GMT


Work on ROL-1294 started by Allen Gilliland.

> Task scheduling is inconsistent due to use of java.util.Timer
> -------------------------------------------------------------
>                 Key: ROL-1294
>                 URL:
>             Project: Roller
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: linda skrocki
>            Assignee: Allen Gilliland
>             Fix For: 4.0
> Roller's ThreadManagerImpl class uses a java.util.Timer class to schedule and run all
of it's periodic tasks, however, this approach is not well suited for Roller's specific tasks.
 As detailed in the javadoc for the java.util.Timer class, long running tasks can backup in
a timer and cause the scheduling to get off track ...
> "Corresponding to each Timer object is a single background thread that is used to execute
all of the timer's tasks, sequentially. Timer tasks should complete quickly. If a timer task
takes excessive time to complete, it "hogs" the timer's task execution thread. This can, in
turn, delay the execution of subsequent tasks, which may "bunch up" and execute in rapid succession
when (and if) the offending task finally completes." 
> To ensure more consistent behavior for the running of scheduled tasks we need to improve
the implementation of the task scheduler in the ThreadManagerImpl.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message