[jboss-jira] [JBoss JIRA] Created: (JGRP-1062) TimeScheduler: if a periodic task throws an exception, task is not run again
Bela Ban (JIRA)
jira-events at lists.jboss.org
Mon Sep 28 07:56:49 EDT 2009
TimeScheduler: if a periodic task throws an exception, task is not run again
----------------------------------------------------------------------------
Key: JGRP-1062
URL: https://jira.jboss.org/jira/browse/JGRP-1062
Project: JGroups
Issue Type: Bug
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 2.6.13, 2.8
When a periodic task is scheduled, e.g. with TimeScheduler.scheduleAtFixedRate()/scheduleWithFixedDelay() or scheduleWithDynamicInterval(), and the task throws an exception, then it will *not* be re-run again !
SOLUTION 1: we need to make sure that all of our tasks never throw an exception, e.g. by wrapping them into try-catch(Throwable) clauses
SOLUTION 2: with the new TimeScheduler (see [1]), we can wrap all tasks and catch all exceptions there
[1] https://jira.jboss.org/jira/browse/JGRP-1051
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list