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

[AMQ7, openwire,redelivery] redelivery counter for message increasing, if consumer is closed without consuming any messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.4.1.GA
    • AMQ 7.2.4.GA
    • openwire-protocol
    • None
    • +
    • Hide
      Previously, if a broker sent a message to an Openwire consumer, but the consumer was closed before consuming the message, the broker wrongly incremented the redelivery count for the pending message. If the number of occurrences of this behavior exceeded the value of the `max-delivery-attempts` configuration parameter, the broker sent the message to the dead letter queue (DLQ) or dropped the message, based on your configuration. The issue did not affect other protocols, such as the Core protocol. This issue is now resolved.
      Show
      Previously, if a broker sent a message to an Openwire consumer, but the consumer was closed before consuming the message, the broker wrongly incremented the redelivery count for the pending message. If the number of occurrences of this behavior exceeded the value of the `max-delivery-attempts` configuration parameter, the broker sent the message to the dead letter queue (DLQ) or dropped the message, based on your configuration. The issue did not affect other protocols, such as the Core protocol. This issue is now resolved.
    • Documented as Resolved Issue
    • Verified in a release
    • Hide

      attaching simple unit test to demonstrate

      Show
      attaching simple unit test to demonstrate

      In the following scenario:

      1) Openwire consumer is created.
      2) Broker dispatches message to consumer.
      3) Consumer is closed before any messages are consumed.

      Result:
      Message redelivery is incremented. If this happens more than the configured <max-delivery-attempts> the message will be sent to DLA (or dropped, depending on configuration).

      When the same steps are carried out with the CORE client, the message redelivery count is NOT incremented and message will always be available on the queue.

              gtully@redhat.com Gary Tully
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: