Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2414

Sync before closing file in case data loss

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.10.0
    • Broker
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wy96f Wei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h