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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Scheduling
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication, Storage
    • Labels:
    • Operating System:
      ALL

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: