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

getJMSRedelivered() incorrectly returns false after a MasterSlave failover

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.0
    • 5.x
    • Broker
    • None

    Description

      Shared master/slave setup, described here http://activemq.apache.org/shared-file-system-master-slave.html
      Scenario:
      1. Transacted consumer receives a message
      2. Transacted consumer disconnects prior to committing
      3. Transacted consumer #2 receives the same message.

      Normally consumer #2 sees that message as getJMSRedelivered() = true. However, if the broker fails and another takes over from the data dir between step 1 and 3, the redelivery is set as false - even though a consumer has, in fact, seen the message before. See attached unit test.

      Attachments

        1. SanRedeliver.java
          6 kB
          Kyle Anderson

        Activity

          People

            Unassigned Unassigned
            kman Kyle Anderson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified