[ 
https://issues.apache.org/jira/browse/AMQ-7219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alan Protasio updated AMQ-7219:
-------------------------------
    Description: 
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 if 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]

  was:
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]


> ActiveMQ replays 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
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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 if 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