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

queuesize can be unreliable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 5.9.0, 5.9.1
    • None
    • Broker
    • windows 8.1, centOS 6.4

    Description

      We noticed that sometimes queuesize attribute of some queues are different from the count of messages that exist in the queue. for example queuesize is 9 but there are no messages in the queue. This issue has happened frequently so after investigation we created a test case for the problem.

      The test case creates 5 message that each consist of an array of 1 million random bytes. On first run it creates the 5 messages and queuesize becomes 5 as expected. On subsequent runs the messages won't persist on queue but queue size is increased by 5.

      Now as a client the code could be improved to prevent such problem but from the perspective of someone who wants to monitor broker states, this is a total failure since she can't know the amount of remaining messages on a queue.

      Attachments

        1. Manipulator2.java
          3 kB
          Morteza
        2. activemq.xml
          6 kB
          Morteza
        3. 1.png
          101 kB
          Morteza
        4. 2.png
          122 kB
          Morteza
        5. AMQ5179Test.java
          4 kB
          Timothy A. Bish

        Activity

          People

            Unassigned Unassigned
            mrtkhosravi Morteza
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: