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

JMSExpiration not working correctly with LevelDB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.10.0
    • None
    • LevelDB
    • None
    • Solaris and MacOS X, Java 1.6, Camel 2.14 is used for sending messages to the AMQ.

    Description

      I'd like to create a setup where messages with an JMSExpiration header expire in a queue named "Retry" and are then moved to the "ActiveMQ.DLQ". The messages should then be consumed from the ActiveMQ.DLQ. As a specialty, the messages are 5MB large.

      The messages do expire in "Retry" and are moved to the "ActiveMQ.DLQ". When the expire however, I instantly see twice the number of expired messages on the "ActiveMQ.DLQ" (see the attached pictures). The following two pictures (JConsole) are taken after the AMQ was started and all previous messages and statistics where deleted during startup.

      The error happens with LevelDB and ReplicatedLevelDB. It does not occur if KahaDB is used. Furthermore the error does not occure if useCache is true and only a couple of messages are sent. It does occur with useCache is true if many messages are sent. It always happens if useCache is set to false.

      Endpoint URI and Parameters: activemq:queue:Retry?preserveMessageQos=true
      We also set the JMSExpiration header to 60 seconds in the future.

      Attachments

        1. activemq.xml
          2 kB
          Johannes Pieringer
        2. JConsole_-_ActiveMQ.png
          20 kB
          Johannes Pieringer
        3. JConsole_-_Retry.png
          19 kB
          Johannes Pieringer
        4. jms-expiration-test.zip
          75 kB
          Johannes Pieringer

        Activity

          People

            Unassigned Unassigned
            jpieringer Johannes Pieringer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: