[SERVER-61708] Need to make sure all backup files are closed before WT shutdown on windows Created: 23/Nov/21  Updated: 29/Oct/23  Resolved: 23/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Replication 2021-11-29
Participants:

 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.



 Comments   
Comment by Githook User [ 23/Nov/21 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-61708 Need to make sure all backup files are closed before WT shutdown on windows
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/c770db62c1b8c93c110eb4b3098c5bcfe8b9048a

Generated at Thu Feb 08 05:53:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.