You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Serge Huber (JIRA)" <ji...@apache.org> on 2019/06/09 08:44:00 UTC

[jira] [Created] (UNOMI-235) Exception in timers cancels them

Serge Huber created UNOMI-235:
---------------------------------

             Summary: Exception in timers cancels them
                 Key: UNOMI-235
                 URL: https://issues.apache.org/jira/browse/UNOMI-235
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 1.4.0, 1.3.0-incubating, 1.2.0-incubating, 1.1.0-incubating, 1.0.0-incubating
            Reporter: Serge Huber
            Assignee: Serge Huber
             Fix For: 1.5.0


We currently have a problem if any exceptions occur inside the execution of scheduled timers such as the ones that reload rules from the ElasticSearch back-end.

To reproduce this problem, simply launch Unomi, shutdown ElasticSearch and once this happens, exceptions are generated and the timer for rule reload is cancelled. Other timers may also be affected. 

We should solve this by catching all exceptions inside timers and log them. This might generate lots of logs but this is better behavior than cancelling the timers.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)