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

ServiceContextMongoDTest fixture shouldn't write out storage engine related files to disk

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Repl 2019-12-30, Repl 2020-01-13

    Description

      Whenever a ServiceContextMongoDTest fixture is constructed, it initializes a new storage engine. This storage engine initialization process does at least two disk writes: it creates a PID file for the running process and also writes out the storage engine metadata file (storage.bson). For unit test suites with lots of tests, these file writes occur every time a test is run. This can add an undesirable amount of overhead to unit test execution, and these disk writes don't seem necessary since the unit tests mostly use an ephemeral storage engine. We should try to avoid doing these writes in our unit test fixtures.

      Attachments

        Activity

          People

            siyuan.zhou@mongodb.com Siyuan Zhou
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: