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

Queue Advisory message not sent when new queue created via Message which has AMQ_SCHEDULED_DELAY Header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.16.1, 5.17.0, 5.18.0
    • 6.0.0, 5.18.3, 5.17.6
    • Job Scheduler
    • None

    Description

      When a message is sent to a queue which does not currently exist, we expect the queue to be created on the fly. If Advisory Support is turned on, then a subscriber to the 'ActiveMQ.Advisory.Queue' should be notified any time a new queue is created.

      When sending the first message to a new queue using an Anonymous JMS Producer, and the AMQ_SCHEDULED_DELAY Header is present (for delayed delivery), the message is put on the queue after the delay timeout and the queue created for the first time.

      The bug is that the Advisory Message for the queue being created does not get published.

      I will submit a PR of a broken unit test demonstrating the issue. Also, I have a fix which I'll submit in the same PR.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            martindevlin Martin Devlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 1h 50m
                1h 50m