Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2926

Scheduled task executions are skipped randomly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.13.0
    • 2.16.0
    • Broker
    • None

    Description

      Scheduled tasks extending ActiveMQScheduledComponent could randomly skip an execution, logging:

      Execution ignored due to too many simultaneous executions, probably a previous delayed execution
      

      The problem is in the "ActiveMQScheduledComponent#runForExecutor" Runnable.
      Times to be compared (currentTimeMillis() and lastTime) are taken inside the runnable execution itself. So, depending on relative execution times, it could happen that the difference is less than the given period (e.g. 1 ms), resulting in a skipped execution.

      Attachments

        Issue Links

          Activity

            People

              nigrofranz Francesco Nigro
              apachedev Apache Dev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 50m
                  3h 50m