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

Gary Tully resolved AMQ-7219.
-----------------------------
       Resolution: Fixed
         Assignee: Gary Tully
    Fix Version/s: 5.16.0

looks good.

it does beg the question; can we bypass the journal write for the empty commit, 
maybe that is something for future work. It would not be a trivial change, but 
maybe something to consider.

> 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
>            Assignee: Gary Tully
>            Priority: Major
>             Fix For: 5.16.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Hi,
>  
> Sending non persistent messages on a Transacted session is causing activeMQ 
> to keep and replay (on startup) 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