Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-3386

[AMQ7, message expiry, auto-delete] auto-created queue may not auto-deleted when message expire

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.7.0.CR2
    • AMQ 7.3.0.GA
    • broker-core
    • None
    • +
    • Hide
      Previously, the broker did not delete an automatically-created queue in the case where no consumers ever connected to the queue and all messages on the queue had expired. This issue is resolved. The broker deletes the automatically-created queue in this situation.
      Show
      Previously, the broker did not delete an automatically-created queue in the case where no consumers ever connected to the queue and all messages on the queue had expired. This issue is resolved. The broker deletes the automatically-created queue in this situation.
    • Documented as Resolved Issue
    • Verified in a release
    • Hide

      If a consumer is attached to the queue and then removed, the queue will then be auto-deleted.

      Show
      If a consumer is attached to the queue and then removed, the queue will then be auto-deleted.
    • Hide

      1) the producer is sending messages with a on-zero TTL/Expiration set (I used 1000ms) to a queue that does not exist.
      2) this triggers an auto-create
      3) stop producer
      4) the existing messages expire after a little while
      RESULT:
      the queue has zero messages and if a consumer never attaches, the queue is not auto-deleted.

      If a consumer is attached to the queue at some point and exits, the queue is auto-deleted, even if some messages expire.

      Show
      1) the producer is sending messages with a on-zero TTL/Expiration set (I used 1000ms) to a queue that does not exist. 2) this triggers an auto-create 3) stop producer 4) the existing messages expire after a little while RESULT: the queue has zero messages and if a consumer never attaches, the queue is not auto-deleted. If a consumer is attached to the queue at some point and exits, the queue is auto-deleted, even if some messages expire.

      When a queue is auto-created it will be auto-deleted when the consumers are closed and the message count is zero (as expected).

      However, if no consumers ever attach to the auto-created queue and the message that resided on that queue have expired, the broker will NOT auto-delete the queue.

              rhn-support-jbertram Justin Bertram
              rhn-support-jsherman Jason Sherman
              Tiago Bueno Tiago Bueno
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: