Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7847

Clarify WiredTiger journal files are not deleted on clean shutdown

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server
    • None

    Description

      Since this is a significant difference in behavior between MMAPv1 and WiredTiger, it may be worth highlighting in the documentation: https://docs.mongodb.com/v3.2/core/journaling/#journaling-and-the-wiredtiger-storage-engine

      When journaling with WiredTiger, there should always be at least one log file, and these log files will remain after a clean shutdown. After restarting, MongoDB will enter a recovery stage and will use any log records it needs.

      The log files are still required in the case of a clean shutdown since MongoDB is not initially aware of whether it suffered an unclean shutdown. After recovery, the archive will run and remove all non-essential files.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kelsey.schubert@mongodb.com Kelsey Schubert
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago