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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Replication 2021-11-29

      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.

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

              Created:
              Updated:
              Resolved: