Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-60871

Create directory as link on Windows for tests

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

      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:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: