[SERVER-60871] Create directory as link on Windows for tests Created: 20/Oct/21  Updated: 06/Dec/22  Resolved: 25/Oct/21

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

Type: Improvement Priority: Major - P3
Reporter: Sergey Galtsev (Inactive) Assignee: Backlog - Security Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-60887 Retry directory destruction in ResetD... Closed
Assigned Teams:
Server Security
Participants:
Linked BF Score: 40

 Description   

On Windows there are cases when a directory is still locked after mongo process has exited, which causes test failures. See BF-13075

One way to solve the problem is by making test directory a symbolic link, as described here: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ . ResetDbpath will then be able to create a new directory and reset a link to point to the newly created directory, which will work even if existing directory can not be cleaned up.



 Comments   
Comment by Sergey Galtsev (Inactive) [ 25/Oct/21 ]

this is to be reopened if solution in SERVER-60887 fails

Comment by Spencer Jackson [ 25/Oct/21 ]

We should revisit this and re-open if SERVER-60887 doesn't resolve this issue for us.

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