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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0
    • 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

        Issue Links

          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: