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

Retry directory destruction in ResetDbpath

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2021-11-15
    • 40

    Description

      The ResetDbpath shell helper is used to destroy old database paths created by the integration tests.

      Unfortunately, sometimes calls to boost::filesystem::create_directory appear to fail spuriously on Windows. This is likely due to file handles remaining active in the kernel, either because of some background job, or because cleanup takes longer than expected. We had previously experienced faults while performing boost::filesystem::remove_all, but resolved that by retrying errors on Windows in SERVER-44553.

      While there are likely more comprehensive solutions, they would likely be more expensive to implement and maintain. We should investigate whether a simple retry would meet our needs.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: