Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4591

CronParser bug on getNextScheduledTime to handle the once per minute case "* * * * *"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0, 5.9.0
    • 5.9.0
    • Broker
    • Any

    • Patch Available

    Description

      There is a Bug on handle the once per minute case.
      For the cronentry: "* * * * *"
      The Next Scheduled time is not the top of the next minute.
      Instead, is the current Time plus 60 seconds

      The problem is that the code is trying to set the precision at seconds, but the precision must have to be at minutes.

      You can check the patch attached to see the change required to fix this issue.

      Attachments

        1. CronParser.java.patch
          0.7 kB
          Rafael Alfaro

        Activity

          People

            tabish Timothy A. Bish
            ralfaro Rafael Alfaro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified