[SERVER-61096] ResetDbPath sometimes errors while recreating dbpath on Windows Created: 28/Oct/21  Updated: 29/Oct/23  Resolved: 29/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.4, 5.1.0-rc3

Type: Bug Priority: Major - P3
Reporter: Richard Samuels (Inactive) Assignee: Richard Samuels (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: STM 2021-11-15
Participants:
Linked BF Score: 29
Story Points: 0

 Description   

In a similar vein to SERVER-44553, ResetDbPath will sometimes raise "Access denied" errors on Windows when trying to recreate the dbpath. We should duplicate the solution in SERVER-44553 for the call to the create_directory function.



 Comments   
Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-61096 ResetDbPath sometimes errors while recreating dbpath on Windows

(cherry picked from commit e8aafb99f494c29e6ed05e3696a9cd2bb6b3ea5b)
Branch: v5.1
https://github.com/mongodb/mongo/commit/da1d7ecb54596409a455f1457012d9dafe788d90

Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-61096 ResetDbPath sometimes errors while recreating dbpath on Windows

(cherry picked from commit e8aafb99f494c29e6ed05e3696a9cd2bb6b3ea5b)
Branch: v5.0
https://github.com/mongodb/mongo/commit/e3f96e7744e17dba8d015e5119fb83318e1d145e

Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-61096 ResetDbPath sometimes errors while recreating dbpath on Windows
Branch: master
https://github.com/mongodb/mongo/commit/e8aafb99f494c29e6ed05e3696a9cd2bb6b3ea5b

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