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

Messages lost when ServerSessionPool.getServerSession() throws a JMSException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 5.3.0
    • NEEDS_REVIEW
    • None

    Description

      In ActiveMQConnectionConsumer.dispatch() method, if the call to sessionPool.getServerSession() results in an Exception, the message being dispatched is never redelivered and is lost forever. In fact, it gets stuck in the dispatch queue and can result in no new messages at all being delivered to the consumer if the prefetchSize has been reached!

      This JMSException is part of JMS's public API and it seems to me that if it is thrown, that should not result in a lost message.

      I'm attaching a junit test that reproduces the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rodos77 Eugene Rodos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: