Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-388

Unhandled RuntimeException in MessageListener#onMessage does not increment AMQP delivery count in AUTO_ACK

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.32.0
    • Fix Version/s: None
    • Component/s: qpid-jms-client
    • Labels:
      None

      Description

      The JMS spec states: "The result of a listener throwing a RuntimeException depends on the session's acknowledgment mode. AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE: the message will be immediately redelivered. ... The 'JMSRedelivered' message header field will be set, and the 'JMSXDeliveryCount' message property incremented, for a message  redelivered under these circumstances."

      Currently qpid-jms however is not incrementing the deliveryCount or setting the redelivered message header to true when a listener throws a runtimeexception while in AUTO_ACK.

      This results in "jms.redeliveryPolicy.maxRedeliveries" being ignored and endless redelivery attempts.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johan1 Johan Stenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: