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

Messages are lost and no exception raised when queue is deleted and created by another process.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.3.0
    • 5.6.0
    • None
    • None
    • Windows Server 2003, Windows XP, ActiveMQ standalone installed as a windows service via the Java Service Wrapper

    Description

      To reproduce the bug I used ConsumerTool.java and ProducerTool.java found in the activemq distribution examples, transactions and durable queues:

      Start ConsumerTool.java
      Start producer 1 (Instance of ProducerTool.java)
      Producer 1 sends first message
      Consumer receives first message
      Pause Producer 1 (I used a breakpoint)
      Delete Queue
      Start producer 2
      Make sure at least 1 message is created by producer 2 (10 messages total)
      Let Producer 1 continue (9 more messages produced)

      Expected result: 20 messages consumed by the consumer
      Actual Result: 11 messages consumed by the consumer. The second through tenth messages from Producer 1 are lost and no exception is thrown.

      Attachments

        1. ConsumerTool.java
          10 kB
          Joshua Palmer
        2. ProducerTool.java
          7 kB
          Joshua Palmer

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              uvapalmer Joshua Palmer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: