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

Message is assigned to different client with the same JMSXGroupID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.9.0, 5.9.1, 5.10.0
    • None
    • Broker
    • None

    Description

      I discovered since AMQ 5.9, message could be sent to different consumer even with JMSXGroupID is set.

      Here is how to reproduce.
      1. start 10 consumers to connect to server (consumer 1-10)
      2. send 1025 messages with JMSXGroupID set from 0 - 1024
      3. add other 10 consumers to connect to server (consumer 11-20)
      4. send several messages with JMSXGroup set from 0 - 1024

      Now, you can observe consumers added lately ( 11 - 20 ) will also receive messages even JMSXGroupID have been dispatched to first consumer group( 1 - 10).

      note: In step2 , there should have more than 1024 different kind of JMSXGroupID to reproduce this bug.

      Attachments

        1. TestGroups.java
          2 kB
          Igor Samardzija
        2. Producer.java
          2 kB
          Igor Samardzija
        3. Consumer.java
          4 kB
          Igor Samardzija
        4. AMQ5322Test.java
          5 kB
          Timothy A. Bish
        5. GroupIdTest.java
          4 kB
          Luoh Ren-Shan

        Activity

          People

            mattrpav Matt Pavlovich
            bagameow wesley lin
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: