Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61708

Need to make sure all backup files are closed before WT shutdown on windows

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Replication 2021-11-29

    Description

      The DocumentSourceBackupFile opens WiredTiger backup files. Unfortunately the cursor which does this is not necessarily killed by shutdown, and WiredTiger will fatal assert on shutdown if it can't remove its files. The BackupCursorHooks/Service is also not shut down, so it can't be used to implement shutdown until it is.

      Solution here is to close the file on Windows whenever we're not actively using it, except during exhaust operations. A cancelled exhaust operation will always close the cursor (and thus the file). Closing the file all the time would be a major performance penalty.

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: