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

Message delivery to selector based consumers pauses if selector leaves messages on the queue.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.0, 5.3.0
    • 5.4.1
    • Broker
    • None
    • Windows XP Professional 2002, Service Pack 2, Intel Pentium D 3ghz, various 1.5 and 1.6 versions of jdk

    Description

      I have written a test case which will demonstrate the difference between the following two scenarios:

      1. Producer sending dissimilar JMSType messages to a queue, with a client consuming all messages (no selector).
      2. Producer sending dissimilar JMSType messages to a queue, with a client consuming every other message (using selector).

      With a large enough size of test messages (for my environment about 5k), scenario 2 will fail with delivery to the consumer halted, while scenario 1 will not.

      Test Output:

      waiting for consumer to pause ... consumer: 0, producer: 0
      waiting for consumer to pause ... consumer: 200, producer: 5000
      waiting for consumer to pause ... consumer: 200, producer: 5000
      waiting for consumer to pause ... consumer: 200, producer: 5000
      waiting for consumer to pause ... consumer: 200, producer: 5000
      waiting for consumer to pause ... consumer: 200, producer: 5000

      Attachments

        Issue Links

          Activity

            People

              gtully Gary Tully
              jarbaby Jar Lyons
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: