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

camel-support: background tasks without maxDuration are reeschedulable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.3, 3.19.0
    • 3.18.5, 3.20.0
    • camel-core
    • None
    • Unknown

    Description

      This comes as a report from Michal Lück in a thread in Zulip chat:

      ??"... I might have discovered an issue with the camel smpp component. It seems that if the producer never had a valid connection, it tries maxReconnect times to establish the connection but if those retries fail the BackgroundTask is looping and never returning. (similar behavior as in https://issues.apache.org/jira/browse/CAMEL-17472) ??
      I created a little example project to demonstrate my problem: https://github.com/thuri/smpp-test"

      Subsequently explained as:

      " ... I think the Problem is actually in the BackgroundTask class.

      ??If the Budget for the task is created without maxDuration but with maxIterations, the scheduled task will never be canceled and run forever. It will only execute the actual delegate method (booleanSupplier) exactly maxIteration times but the task is still rescheduled doing nothing but logging a warning that the Budget has been consumed completely ..." ??

      Attachments

        Activity

          People

            orpiske Otavio Rodolfo Piske
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: