Alan Protasio created AMQ-7219:
----------------------------------

             Summary: ActiveMQ replaying journal file on a clean/unclean 
shutdown with transacted session + Non persistent Messages
                 Key: AMQ-7219
                 URL: https://issues.apache.org/jira/browse/AMQ-7219
             Project: ActiveMQ
          Issue Type: Bug
          Components: KahaDB
    Affects Versions: 5.15.9
            Reporter: Alan Protasio


Hi,

 

Sending non persistent messages on a Transacted session is causing activeMQ to 
replay unnecessary journal files. If all messages are in this situation 
activemq will replay the whole journal file even with a clean shutdown.

 The problem is because is the transaction has no persistent operation, the 
metadata.lastUpdate is never updated.

[https://github.com/apache/activemq/blob/master/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java#L1400]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to