Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2309

Long overflow in JMS delays

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Queue
    • Labels:

      Description

      When using a Long.MAX delay value:

       - TimeUnit delay conversion to ms detect the overflow and fallback to maximum value
       - But nextDeliverycalculation in getJMSProperties adds  that value to current time. And that computation DO overflow.

      See DelayedMailQueueTest :: enqueueWithVeryLongDelayShouldDelayMail

      The consequence is that a delayed mail is directly delivered. Correct behaviour would be to keep preserving Long.MAX value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                btellier Benoit Tellier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: