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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.32.0
    • None
    • qpid-jms-client
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            johan1 Johan Stenberg

            Dates

              Created:
              Updated:

              Slack

                Issue deployment