Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1062

TimeScheduler: if a periodic task throws an exception, task is not run again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.6.13, 2.8
    • None
    • None

      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

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: