Create directory as link on Windows for tests

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • 40
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Security Team
            Reporter:
            Sergey Galtsev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: