Fuzztests do not run global initializers like unit tests do

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • SP Prioritized List
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Unit tests today perform a series of setup steps when initiating a unit test binary.

      These include initializing the globally registered initializers as well as initializing the TestingProctor.

      However, fuzztests that use existing unit test fixtures have to manually setup the initializers themselves as there is no such initialization done for them. Otherwise they might not start up due to having uninitialized global variables.

      An example of this is the Sharding DDL fuzzer added in SERVER-129228.

            Assignee:
            Unassigned
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: