ActiveMQ
  1. ActiveMQ
  2. AMQ-1797

persistent messages for durable subscribers are not purged from disc storage

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.3.0
    • Component/s: Message Store
    • Labels:
      None
    • Environment:

      WinXP,
      java version "1.6.0_05"
      Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
      Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

      Description

      I have some problems with multiple durable subscribers while persistent delivery is used.
      Message should be deleted from disc storage (periodically) after all interested subscribers have received it. In case there was one durable subscriber everything woks just fine. However when I tested this scenerio with two durable subscribers on topic, the messages were never deleted (disc usage is continously consumed and never purged).

      Test case description:
      -using default activemq.xml configuration file from binary distribution
      -TopicConsumers.java creates two separetes durable consumers
      -textMessageFile.txt is file which text is sent by producer (place it on classpath)

      Result:
      -all messages there were send were also received by both subscribers
      -after more then 100k messages data directory is about 1GB.
      -restarting activemq with so big persistent storage takes very long time

      1. activemq.xml
        5 kB
        Juraj Kuruc
      2. kaha_amq.zip
        9 kB
        Juraj Kuruc
      3. Storage_cleanup_Redelivery_test.zip
        9 kB
        Juraj Kuruc
      4. ASF.LICENSE.NOT.GRANTED--textMessageFile.txt
        9 kB
        Juraj Kuruc
      5. ASF.LICENSE.NOT.GRANTED--TopicProducer.java
        4 kB
        Juraj Kuruc
      6. ASF.LICENSE.NOT.GRANTED--TopicConsumers.java
        3 kB
        Juraj Kuruc

        Activity

          People

          • Assignee:
            Dejan Bosanac
            Reporter:
            Juraj Kuruc
          • Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development