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

mongo_embedded_test opens storage data files in the default dbpath (/data/db)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Dev Tools 2020-03-23, Dev Platform 2021-02-22, Dev Platform 2021-03-08, Dev Platform 2021-03-22

    Description

      When I run mongo_embedded_test, it appears open the default dbpath (/data/db) with the default (or detected) storage engine. It then closes that storage engine before proceeding with the unit test suites (which all use temporary locations for their dbpaths).
      This happens because the embedded instance initialize() calls initializeStorageEngine().

      This means that if you have corrupt or problematic files in /data/db, your unit test can fail, or worse, silently change the files.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: