]
Bela Ban resolved JGRP-1062.
----------------------------
Resolution: Done
Fixed by wrapping periodic tasks in RobustRunnable, catches runtime exceptions and logs
them as errors. This can be removed when TimeScheduler has been rewritten
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: