roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Gilliland (JIRA)" <nore...@atlassian.com>
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

     [ http://opensource.atlassian.com/projects/roller/browse/ROL-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Work on ROL-1294 started by Allen Gilliland.

> Task scheduling is inconsistent due to use of java.util.Timer
> -------------------------------------------------------------
>
>                 Key: ROL-1294
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1294
>             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: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message