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

Must disable requireApiVersion after all fuzz tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • 4

      If the JS test fuzzer happens to produce code that enables the "requireApiVersion" server parameter, then all test hooks' commands will fail because they don't pass an API version. For example, in jstestfuzz_replication_continuous_stepdown, if the fuzzer enables requireApiVersion, then the CheckReplDBHash hook will fail at the end of the test.

      I fixed this for replica set tests in SERVER-49887 by disabling requireApiVersion in the FuzzerRestoreClusterSettings hook. I didn't notice that that hook only runs at the end of replica set tests, so standalone and sharding tests can still fail.

      Let's rename FuzzerRestoreClusterSettings to FuzzerRestoreSettings and run it at the end of all fuzz tests that might enable requireApiVersion.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: