ActiveMQ
  1. ActiveMQ
  2. AMQ-2584

Massege store is not cleaned when durable topic subscribers are refusing messages

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.0, 5.3.1, 5.4.0
    • Fix Version/s: 5.4.2
    • 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

      Hi,

      i am using activemq 5.3 (resp. 5.4 snapshot , 5.3.1 snapshot) with kahadb in following use-case:

      • 3 durable topic subscriber, each refuses message using session.recover(), 1 delivery attempts
      • ActiveMQ.DLQ consumer
      • persistent message topic producer

      In such case deadletter consumer should consume every message sent, as soon as number of delivery attempts is reached and mmessage is sent to ActiveMQ.DLQ. Result is ok but kahadb data directory at the end contains all log files with names db-<number>.log ever created. They aren't deleted even after some time.

      I can also see following massege in console:

      WARN | Duplicate message add attempt rejected. Message id: ID:sk1d069c-3826-1264006781626
      -0:0:1:1:13425

      If use-case is altered to use queue instead of topic log files are periodically deleted without WARN messages in console.

      Same behaviour (data files not cleaned) if amqPersistenceAdapter is used except of WARN messages.

      1. UpdatedTestCase.patch
        9 kB
        Stan Lewis
      2. AMQ2584Test.java
        8 kB
        Stan Lewis
      3. AMQ2584Test.java
        8 kB
        Gary Tully
      4. 2584_test.zip
        10 kB
        Juraj Kuruc

        Activity

        Juraj Kuruc created issue -
        Juraj Kuruc made changes -
        Field Original Value New Value
        Fix Version/s 5.4.0 [ 12110 ]
        Affects Version/s 5.3.1 [ 12183 ]
        Fix Version/s 5.3.1 [ 12183 ]
        Affects Version/s 5.4.0 [ 12110 ]
        Juraj Kuruc made changes -
        Attachment 2584_test.zip [ 18848 ]
        Rob Davies made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Gary Tully made changes -
        Attachment AMQ2584Test.java [ 19535 ]
        Gary Tully made changes -
        Assignee Gary Tully [ gtully ]
        Gary Tully made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 6 ]
        Stan Lewis made changes -
        Attachment AMQ2584Test.java [ 19537 ]
        Stan Lewis made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Not A Problem [ 6 ]
        Gary Tully made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Stan Lewis made changes -
        Attachment UpdatedTestCase.patch [ 19771 ]
        Stan Lewis made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Gary Tully made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 5.5.0 [ 12344 ]
        Fix Version/s 5.4.1 [ 12332 ]
        Resolution Fixed [ 1 ]
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]

          People

          • Assignee:
            Gary Tully
            Reporter:
            Juraj Kuruc
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development