You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2025/04/23 20:06:00 UTC

[jira] [Closed] (ARTEMIS-5379) Journal commit record recorded before Page Writer is finished leading to possible message loss on a crash

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

Clebert Suconic closed ARTEMIS-5379.
------------------------------------
    Fix Version/s: 2.41.0
       Resolution: Fixed

> Journal commit record recorded before Page Writer is finished leading to possible message loss on a crash
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5379
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5379
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Clebert Suconic
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 2.41.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Due to ARTEMIS-5305, the journal commit record could reach the journal before the page writes. 
> The clients were always waiting correctly for the entire portion of the data being stored. However if an uncertainty happened (the failure happened before the page write was finished) you could have a situation where part of the TX is recorded and part is not.
> That could lead to DUPLICATE Cache stored and not the data.
> Or other portion of the TX stored but not the send.
> The fix is to defer the write of the journal record until the page write operation is finished.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact