-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: 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
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.
- is duplicated by
-
SERVER-54414 Prevent tests from using /data/db dbpath
- Closed