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

Create directory as link on Windows for tests

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Security
    • 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.

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: