Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1896 >1 transactional and exclusive consumers receiving messages at the same time.
  3. AMQ-1897

Non-transactional and exclusive consumer may receive messages out-of-order.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.1.0
    • 5.3.0
    • Broker
    • None

    Description

      With an env as described above it is possible to violate the exclusive consumer limitation. Initially with all three consumers being started and the producer sending messages, the exclusive consumer feature works fine.
      However if you kill and restart each consumer in a row, allowing another consumer to take over the exclusive right, you will eventually reach a state where a message that was already consumed by the previous exclusive consumer gets redelivered to the new exclusive consumer that has taken over the work.
      As consumers are non-transactional, they will autocommit every single message received, so each msgs gets deleted from the jdbc db sequentially. Hence if another exclusive consumer takes over it should only process messages >= the message number of the previous exclusive consumer. However this is not the case.

      This bug is kind of related to AMQ-1896.

      Attachments

        1. HelloWorldJMS_AMQ-1897.zip
          13 kB
          Torsten Mielke

        Activity

          People

            rajdavies Robert Davies
            tmielke Torsten Mielke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: