[ 
https://issues.apache.org/jira/browse/ARTEMIS-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16885673#comment-16885673
 ] 

ASF subversion and git services commented on ARTEMIS-2414:
----------------------------------------------------------

Commit dd62be160201046764cb66396cc93f27796d77d2 in activemq-artemis's branch 
refs/heads/master from yang wei
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=dd62be1 ]

ARTEMIS-2414 Sync before closing file in case data loss


> Sync before closing file in case data loss
> ------------------------------------------
>
>                 Key: ARTEMIS-2414
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2414
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.9.0
>            Reporter: yangwei
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When we open a new page, the page sync timer might sync the current page, 
> i.e. the new page and after it responses are sent back to client. And the old 
> page is closed(not synced), we may lose messages if server crashes before 
> dirty page cache written back into disk.
> When we switch journal file to the new file, TimedBuffer::flushBatch will be 
> called in the old file. Then the file would be synced except in the case user 
> sets "journalDatasync" to false. For safety we'd better sync journal file 
> before closing it.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to