Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18318

camel-quartz - Context fails to start when one of the cron configuration has expired

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.14.5, 3.18.1, 3.19.0
    • camel-quartz
    • None
    • Unknown
    • Important

    Description

      We have integration scenarios with muliple quartz from endpoints in a single camel context deployed as osgi bundles. We observe that if one of the quartz configuration has no more schedules and if the bundle were to get restarted, the entire context fails to start thereby preventing future execution of other routes. Error seen in the stacktrace

      Caused by: org.apache.camel.RuntimeCamelException: org.quartz.SchedulerException: Based on configured schedule, the given trigger 'myGroup.expired' will never fire.
          at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:66)

      The issue is becoming a blocker for our scenarios with multiple custom future schedules. Updating the quartz configuration each time we encounter the error is becoming difficult. Hence requesting your quick insights and a resoultion.

      I am enclosing a junit to help you recreate the issue. quartz-error.zip The scenario has two routes expiredScheduleRoute and recurringScheduleRoute. The expectation is that the context starts and recurringScheduleRoute continues to run every 2 seconds. I believe we may need a parameter to the quartz endpoint to skip the validation for expiredScheduleRoute

       

       

      Attachments

        1. quartz-error.zip
          3 kB
          Prasanth Ganesh Rao

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              pgrao Prasanth Ganesh Rao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: