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

Must disable requireApiVersion after all fuzz tests

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.8.0
    • Replication
    • None
    • Fully Compatible
    • ALL
    • 4

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: