[SERVER-44553] Have the shell ResetDbpath helper be resilient to files being open on windows Created: 11/Nov/19  Updated: 29/Oct/23  Resolved: 09/Jun/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.0-rc10, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-60887 Retry directory destruction in ResetD... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-06-15
Participants:
Linked BF Score: 0

 Description   

Deleting files on windows can fail if another process has the file open. Failures in resetting a dbpath often result as false positives.

It makes sense to add a small sleep + retry before letting boost errors fail a test on these lines.



 Comments   
Comment by Githook User [ 17/Jun/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-44553 Make the shell ResetDbpath helper resilient to files being open on Windows

(cherry picked from commit c277251fb7bce31be749a236a07bdc7b3412b173)
Branch: v4.4
https://github.com/mongodb/mongo/commit/04594d981c0530baf5c56eb22e0c3e86d47c3bbb

Comment by Githook User [ 09/Jun/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-44553 Make the shell ResetDbpath helper resilient to files being open on Windows
Branch: master
https://github.com/mongodb/mongo/commit/c277251fb7bce31be749a236a07bdc7b3412b173

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