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

Messages delivered to durable subcriber are kept in broker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.13.4
    • 5.14.1, 5.15.0
    • Broker
    • None
    • jdk1.8.0_77

    Description

      Given:

      • broker with disabled persistence
      • non-transactional sessions with AUTO_ACKNOWLEDGE
      • topic

      When:

      • there is inactive durable subscription
      • messages are sent to that topic with DeliveryMode.PERSISTENT
      • subscription becomes active and all messages are delivered to the durable consumer

      Then:

      • messages are kept in brokers memory (visible in memoryPercentUsage, on heap etc)

      When:

      • messages expiration time or TTL is elapsed

      Then:

      • messages are still kept in brokers memory (visible in memoryPercentUsage, on heap etc)

      Messages are kept also when message selector of durable subscription does not match messages sent to topic. Changing DeliveryMode to NON_PERSISTENT makes the messages not kept.
      Attached test case.

      Attachments

        1. ActiveMqTest.java
          8 kB
          Filip Nowak

        Activity

          People

            tabish Timothy A. Bish
            fn Filip Nowak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: