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

Rollback redelivery causes inflight count to get out of sync

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.3.0
    • 5.3.1, 5.4.0
    • Broker
    • None
    • any

    Description

      A negative inflight count can result from rollback redelivery as each rollback decremented the inflight count
      With a 0 maxRedeliveryAttempts policy, the poisonAck was incrementing inflight.

      poisinAck should manage the inflight as they are still present (inflight) in the consumer till they are acked via commit or a poisonAck.

      adding some asserts to the existing DeadLetterTest junit demonstrates the problem.

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: