[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: |
|
||||||||||||
| 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 |
| Comment by Spencer Jackson [ 25/Oct/21 ] |
|
We should revisit this and re-open if |