ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Server Programmability
    • Programmability 2026-08-04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The tests in server_options_test.cpp manipulate lots of global state. These tests are bad citizens and make no effort to restore what they modify. It would be quite difficult to do that reliably anyway, it's not like there's a single global object they might touch that we can just snapshot and restore in each test. serverGlobalParams is close, but it's not the only thing they touch and it's not copyable so it can't readily be snapshotted or restored.

      On the road to improving this test and as a way to keep its global state manipulation from leaking into affecting other tests, this change pulls server_options test out of db_base_test into its own binary. mongod_options_test is already similarly isolated. It also removes a pointless dependency on storage_wiredtiger and an associated target_compatible_with that did nothing.

            Assignee:
            Ryan Berryhill
            Reporter:
            Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: